如何仅针对 Internet Explorer 10,用于某些情况,例如特定于 Internet Explorer 的 CSS 或 Internet Explorer 特定的 JavaScript 代码?
2022-08-30 02:27:38
如何仅针对 Internet Explorer 10,用于某些情况,例如特定于 Internet Explorer 的 CSS 或 Internet Explorer 特定的 JavaScript 代码?
我试过这个,但它不起作用:
<!--[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">