最近写html页面的时候发现顶部边界margin-top用了定位之后,IE的跟其他浏览器不同,所以用到了把IE跟其他浏览器区分开来的写法

<!--[if !IE]>
    <div class="clear-30"></div>
这样写是错误的
    <![endif]-->

像上面的写法,是错误的。正确的写法应该是这样:

<!--[if !IE]><-->
    <div class="clear-30"></div>
这样写才是正确的
    <![endif]-->

此功能应用于www.weixh.net顶部导航

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2021-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-10-07
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2021-10-06
  • 2021-09-05
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案