DIV+CSS浏览器兼容问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:29:22
Original
826 people have browsed it

1. margin-left:10px;本来左边距设置为10px,但IE6.0解释为20px,
但解决也非常简单。办法就是是加上display:inline。

2. 应用IMG标签置入图片。在IE环境中在图片的下方,会出现一个小空隙。
应用display:block;解决图片下方的空隙。

3. 在Mozilla中浏览时候,能够理解!important的优先级.
在IE中浏览时候,不能够理解!important的优先级.

4. text-align属性为center。这样的方法在IE里看起来一切 正常;但是在Firefox中b却会是居左的。
margin为auto。例如设置CSS样式为:margin: 0 auto;

Related labels:
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!