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

WBOY
Release: 2016-06-24 11:53:04
Original
1296 people have browsed it

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

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

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

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!