Home  >  Article  >  Web Front-end  >  除了IE浏览器能识别之外,其他浏览器都不能识别的html写法_html/css_WEB-ITnose

除了IE浏览器能识别之外,其他浏览器都不能识别的html写法_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:53:041293browse

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

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

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

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn