Tag: 条件注释

如何针对特定情况(如Internet Explorer特定的CSS或特定于Internet Explorer的JavaScript代码)仅针对Internet Explorer 10?

如何针对特定情况(如Internet Explorer特定的CSS或特定于Internet Explorer的JavaScript代码)仅针对Internet Explorer 10? 我试过这个,但是不起作用: <!–[if IE 10]> <html class="no-js ie10" lang="en"> <![endif]–> <!–[if !IE]><!–> <html lang="en" class="no-js"> <!–<![endif]–> Internet Explorer 10将忽略条件注释,并使用<html lang="en" class="no-js">而不是<html class="no-js ie10" lang="en"> 。