Home >Web Front-end >HTML Tutorial >css compatibility of ie678, FF, chrome_html/css_WEB-ITnose

css compatibility of ie678, FF, chrome_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:401482browse

Reference: http://www.liuzp.com/css/15.html

CSS compatibility is generally a headache faced by front-end beginners, so it is inevitable to write The effect of CSS in each browser is different, so various CSS hack writing methods have come out. In fact, in a standard project development, CSS hacks are advocated to be used as much as possible, because there are many compatibility issues. The situation is caused by irregular writing, but there are indeed some bugs in the browser itself, especially the evil IE.

Quick knowledge: What is a CSS hack?

Since different browsers, such as IE6, IE7, IE8, Firefox, etc., have different understandings of CSS parsing, the generated page effects will be different and we will not get the page effect we need. At this time, we need to write different CSS for different browsers so that it can be compatible with different browsers at the same time and get the page effects we want in different browsers. This process of writing different CSS codes for different browsers is called CSS hack, also called writing CSS hack.

Various browser CSS hack compatibility table:


IE6 IE7 IE8 FireFox Chrome Safari
!important
Y
Y

- Y




* Y Y



*
Y



9 Y Y Y


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