Common CSS hack summary tables in various browsers in Windows
1. the browser version in this summary table is:Microsoft Systems: IE6, IE7, and IE8Firefox: Firefox 3.6.6Safari: safari 5.0Google Chrome 6.0.458.1 DevOperabrowser: Opera 10.60
2. Most
1. Background: URL (../images/member_right.gif) 0-35px;
In IE and chrome, The 'px 'After-35 is optional, but Firefox must be added. Safari and opera are not tested yet;
2. Padding attributes
After ieset this attribute, div will increase the
1. Differences between IE and non-ie browsers# Tip {Background: Blue;/* Non-ie background colors */Background: Red \ 9;/* IE6, IE7, and IE8 background colors */}
2. Differences between IE6, IE7, IE8, and FF[Difference]: "\ 9", "*", and
I have never understood the setting of the padding attribute value.
I can understand this.
For example:Body {padding: 36px ;}Body {padding: 36px 24px ;}Body {padding: 36px 24px 18px ;}Body {padding: 36px 24px 18px 12px ;}
I checked the
There is a gap bug below the picture inserted by Li in IE6, which is a classic bug in IE6. There are many ways to solve this bug. Today I have sorted out four methods in total and I will share them with you.
AttachCode:
Doctype html > Html
Today, when I made a website, I found that the page is compatible with IE7/8, Google browser, Firefox browser, and so on, but it is not compatible with IE6. I did not see it for a long time, some solutions are collected on the Internet:
1. check
Background-color)
This attribute sets the background color for the HTML element, which is equivalent to the bgcolor attribute in HTML.
Body {background-color: #99ff00 ;}
The aboveCodeThe background color of the HTML element "body" is green.
@ Font-face is a CSS rule that allows you to enter your font to appear on the website, even if the specified font is not installed on the visitor's computer.The most important thing about this rule is that it opens a brand new world for
In IE6, an IFRAME is usually needed for the surfaced layer to be penetrated by obj. This is the most effective solution currently, but this solution has its own shortcomings, that is, the height of IFRAME cannot be adaptive.Maybe you will think that
The introduction of css3 and HTML5 has also made the compatibility of various browsers a concern of many designers. This article listsSupport for CSS 3 and HTML5 in mainstream browsers.
More and more browsers support css3 and HTML5, or even
1. doctype affects CSS Processing
2. FF: When Div sets margin-left and margin-Right to auto, it is already centered, and IE does not work.
3. FF: when setting text-align for the body, set margin: auto (mainly margin-left, margin-Right) for the
Summary of the absolute center problem during CSS webpage creation [Source: webpage tutorial Network | Author: | time: 10:22:50
| Add this article to favorites] [large, medium, and small]
What is absolute center? That is to say, the container has
ArticleDirectory
1. Variables
2. Hybrid
3. Mixed Parameters
4. nested rules
Less is a style language that provides CSS with dynamic language features, such as variables, inheritance, operations, and functions. Less can be
========================================================== ============================1. Background-Background========================================================== ============================
Writing a single attribute. Sample1
More and more browsers mean that it is more difficult to develop Web Front-end. The current browsers have the same kernel, and there will be some differences in CSS compatibility! Previous usageCSS hackIt is not easy to use too manyCSS hackFor
This problem is encountered in the component CSS loading solution.
Scenario:
The element style can be written in the style or in the external link CSS. If it is not set, it will also read the default CSS of the browser, now we need to calculate
Recently, an external outsourcing service for a foreign project has been provided. The customer requirements are strict. All the layout of the page is DIV + CSS. The page must be compatible with multiple mainstream browsers such as IE6, IE7, Firefox,
CSS is compatible with IE6 IE7 and FF. I hope it will be helpful to people who encounter the same problems as me in the future.
I. CSS HACKThe following two methods can solve almost all today's HACK.
1 ,! Important
With IE7! Important Support ,!
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service