Home  >  Article  >  Web Front-end  >  DIV CSS browser compatibility issue_html/css_WEB-ITnose

DIV CSS browser compatibility issue_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:29:22885browse

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;

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