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.
FAQs:
1. doctype affects CSS Processing
2. FF: When Div sets margin-left
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
The previous calendar selectors were made with tables. Now they are all in the DIV + CSS era. In the past two days, a calendar Selector was rewritten.
The main features are as follows:Position with div;Use Li to generate a table;HtmlCodeVery
There is an embedded introduction on the design draft. when the text is too long, a processed scroll bar is required for display.
If only the IE browser is required, you can change the color of the scroll bar by adjusting the CSS.
The Code is as
DOCTYPE Selection
The selection of doctype is the document type, which determines whether the page elements and the defined CSS will take effect, because in different doctype, the HTML elements that can be used on the page are different, let's take
Directory smaller than 12pxCSS is not supported
Problem Analysis
Google Chrome supports font-size small font
Solve the required CSS code
Before and after solution
Unsolved HTML + CSS code
HTML + CSS code after
This example illustrates the differences in css between IE6 IE7 and IE8 FireFox. Different codes can make websites compatible ~~~~Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
CSS hack
Pseudo-anchor
In browsers that support CSS, different links can be displayed in different states, including activity, accessed, inaccessible, and hovering.
A: link {color: # ff0000}/* unaccessed link */A: visited {color: #00ff00}/* accessed link */A:
After using CSS for so many years, I understand the true matching principle of CSS. Do you know if you are the same as me? Let's look at a simple CSS:
DIV # divBox p span. red {color: red;}. According to our habits, the browser first looks for the
AzimuthBackground-attachment -- move the background image along the scroll axisBackground-color -- background colorBackground-image -- background imageBackground-Position -- the position of the background imageBackground-repeat -- display method of
1. Use abbreviations
If you still don't know the shorthand yet, you will be out of date again. Fortunately, it is not very difficult to learn it. Using abbreviations is the easiest way to reduce code. There is no time to take a look at what is more
The focus of this effect is that I accidentally discovered a bug in IE, which may lead to the loss of the dotted line when a button or link is clicked in a specific environment. Other browsers are relatively simple. Browsers supporting css2 can
In web design, Font Processing cannot be emphasized. After all, web pages use to transmit information, and the most typical and direct method of information transmission is text. Therefore, understanding the basics of fonts is still very important
1. Use class_name to write the class name.I used to like writing with class-name, but it seems that there is no difference between the two. However, I am opposed to writing class names using className because I have always been skeptical about
Leaving is for a better start, and a new start and a new job will begin immediately. I have always thought that the Foundation on css is not very powerful. I plan to repeat the CSS zen garden and CSS webpage layout in a week, take notes on things
Clear a theme that anyone who makes a page will encounter, but do you know clearly and fully understand? As a result, I immediately wrote such an article, which could not cover all aspects. However, I was able to teach everything I knew.
Let's
In HTML, we usually use the link element to introduce an external style sheet. link has the following attributes:
1. rel, indicating "relation". Here, the link (I .e., the rel value) is "stylesheet ";
2. type: always set to "text/css", which
Method
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->///
/// Import css on the Content Page
///
/// current page
/// css style path
Public static void AddStyleSheet (Page page, string
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