When we use CSS to build a webpage, the difference between IE6 and Firefox can be used! Important to solve (this method should be used as little as possible), but IE7 still does not seem to know! Important, and there are some differences between it
SeeArticle: Writing efficient CSS
1. Place CSS inCodePut stylesheets at the top)
I think the official explanation is a bit vague. This actually correspondsUser Access expectation. CSS is placed at the top, and the browser can parse and render HTML
I have been familiar with CSS for a long time, but I am always confused about float. It may be because I have poor understanding ability, or I have never encountered a popular tutorial.
A few days ago, I finally understood the basic principles of
1. Position: static | no location
Position: static is the default value for positioning all elements. It is generally not required unless there is a need to cancel the inheritance of other Positioning
Example: # div-1 {
Position: static;
}
2.
CSS + JS control text
style sheet controls the corresponding text
before the Gulf War, Saddam was a" Lion "in the eyes of many Arab groups, especially Palestine ", it seems that only he can lead the Arab brothers to defeat Israel and
Many other attributes of CSS are easy to understand, such as fonts, texts, and backgrounds. Some CSS books will also introduce these simple attributes in a great way, but ignore the explanation of some difficult attributes, which may be avoided.
Form Action = "" Name = "" ID = "" Role = "Search" Method = "Get" > Fieldset Class = "Search" > Label Class = "Plain Ive-text" For = "S" > Search Label > Input Type = "Search" Name =
Definition and usage
The font-variant attribute sets the font of small uppercase letters to display text, which means that all lowercase letters are converted to uppercase letters, but all letters using small uppercase letters are compared with
Returned value: object {top, left}
Offset () Overview
Obtains the relative offset of the matching element in the current view.
The returned object contains two integer attributes: Top and left. This method is only valid for visible elements.
The most common difference between Firefox and IE is that! The important method provides the following methods for compatibility of different versions of other browsers and browsers, such as @ import, annotation, and attribute selector, sub-object
CSS
This article is simple. You can find APIs such as background and color when you view previous documents, but you cannot find them in Versions later than 1.2. Still use CSS () directly ....
CSSCSS (name ):Access the style attribute of the
Pseudo class
: First-childPseudo class. The pseudo class adds a style to the first child element of the element.
For example, we want to make a special definition for the first element in the list.
Li: First-child {color: Red}
This
CSS sets the maximum and minimum page widthCompatible with IE6, 7/8, 9, FF, chrome, sogou, and other browsers
Set minimum widthDiv {Width: 100%;Min-width: 1000px;Width: expression_r (document. Body. clientwidth }
Set the maximum widthDiv {Width: 10
To be honest, this article will introduce some very mentally retarded knowledge.
However, it is indeed a very difficult knowledge.
There are usually two kinds of responses to the question:
How can people live with so many pitfalls. | It
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