CSS compatibility with browsers sometimes makes people very headache, perhaps when you understand the techniques and principles, you will feel is not difficult, from the online collection of ie7,6 and FIREOFX compatibility treatment method and
e6.0,ie7.0 CSS compatibility issues with Firefox 1.DOCTYPE impact CSS Processing2.ff:div set Margin-left, Margin-right is auto when the center, IE No3.ff:body when setting text-align, Div needs to set Margin:auto (mainly margin-left,margin-right) to
method One:
Applicable browser: IE5 above the IE browser
Using Technology: Conditional comments
Where to use: in HTML code (note not in CSS)
Comparison character:
LTE: Is the shorthand for less than or equal to, meaning less than or equal
IE7 has been released for some days, so the site needs to look after one more browser. These two days designers are doing compatibility and finding a solution that is both shared and documented. Combined with the previous use of important! and/**/to
In this kind of browser display normal, in another kind of chaos, we are writing CSS will be very annoyed, just fixed the browser problem, the result of another browser but a new problem.
What is browser compatibility: When we use a different
[Reprinted] CSS compatibility issues in various browsers. Reprinted css compatibility
CSS compatibility with browsers is sometimes a headache. Maybe when you understand the skills and principles, you will feel that it is not difficult to collect IE7
When I was in a chat room, I used the news reading function in the chat room to capture information (such as the latest headlines, news sources, titles, and content) from the webpage) class, this article will introduce how to use this class to
1. Vertical-align: middle of the DIV vertical center problem; Increase the line spacing to the line-Height: 200px as high as the entire div; then insert the text, and the vertical center is formed. The disadvantage is that you need to control the
Comments: CSS compatibility with browsers can sometimes be a headache. If you understand the skills and principles, you may find it difficult to collect IE7 from the Internet, 6. Solve the problem of compatibility with fireofx and sort it out.
For
IE6, IE7:
Display: inline;
IE is not compatible with Firefox! ImpOrtant
CSS hack: differentiate IE6, IE7, and firefoxDifference between different browsers, CSS hack writing:Difference between IE6 and FF: Backgroundrange; * background:
CSS compatibility with browsers is sometimes a headache. Maybe when you understand the skills and principles, you will feel that it is not difficult to collect IE7 from the Internet, 6. Solve the problem of compatibility with fireofx and sort it out.
CSSPairBrowserThe compatibility is sometimes a headache. when you understand the skills and principles, you may feel that it is not difficult to collect IE7 from the Internet, 6. Solve the problem of compatibility with fireofx and sort it out. for
1. Vertical center of DivVertical-align: middle;Increase the line spacing to the same height as the entire Div line-Height: 200px;Then insert the text to center vertically. The disadvantage is that you need to control the content rather than line
For more information, see http://netsos.cnblogs.com/1 ,! Important (limited function)
With IE7! Important Support ,! The important method is only compatible with ie6. (note the writing method. Remember that the declaration position must be in
1. Div Center
If the DIV sets margin-left and margin-Right to auto, it is already centered. If IE is not, you need to set the body to center. First, define text-algin: center in the parent element; this means that the content in the parent element
CSS compatibility with browsers sometimes makes people very headache, perhaps when you understand the techniques and principles, you will feel is not difficult, from the online collection of ie7,6 and FIREOFX compatibility treatment method and
CSS has a high value for the compatibility of browsers. In general, there is a great difference between IE and Firefox. Here we will introduce the compatibility points.
1. doctype affects CSS Processing2. FF: When Div sets margin-left and
In the past, CSS
Code In writing, most of us use it! Important to hack.
Tests in IE6 and Firefox can be displayed normally, and hack technology is successfully applied.
But the newly released IE7 pair! Important can be correctly explained. The page
CSS compatibility with the browser is sometimes a headache, perhaps when you understand the techniques and principles, it will not be difficult, from the online collection of ie7,6 and FIREOFX compatibility processing skills and collation. For web2.0
Common techniques for CSS compatibilityPlease try to write code in XHTML format, and DOCTYPE affect the CSS processing, as a standard, must add DOCTYPE declaration. Vertical centering problem for 1.divVertical-align:middle; Increase the line
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.