DIV CSS browser compatibility issue_html/css_WEB-ITnose

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

1. margin-left:10px; Originally the left margin was set to 10px, but IE6.0 interpreted it as 20px,
but the solution is very simple. The solution is to add display:inline.

2. Use the IMG tag to place the image. In the IE environment, a small gap will appear below the picture.
Apply display:block; to solve the gap under the image.

3. When browsing in Mozilla, the priority of !important can be understood.
When browsing in IE, the priority of !important cannot be understood.

4. text- The align attribute is center. This method looks normal in IE; but in Firefox, b will be on the left.
margin is auto. For example, set the CSS style to: 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