* The following text is used to collect articles on some websites or forums. It does not represent my opinion and is for reference only.========================================================== ==================================In fact, not div is
css| Web page
Use Div to layout, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics?
The question was hotly debated in the study group some time ago, when Rice was asked: "What is semantic
CSS Div Layout in the presence of one or more lines of text in each line of text content can not be displayed, up and down line text has a little overlap phenomenon, text font only show half of the solution, in the low version of IE especially
DIV+CSS compatible with browser methods such as IE6 IE7 IE8 IE9 and Firefox Chrome1.DOCTYPE affects CSS processing 2. Ff:div set Margin-left, margin-right for Auto is already centered, IE not 3. Ff:body when setting text-align, Div needs to set
1.IE8 compatibility issues, this best deal, converted into IE7 compatible can be. Add the following piece of code to the head, and then as long as it is compatible under IE7, IE8 below is also compatible2.flaot floating caused IE6 double margin
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
Some attributes are often used in the div layout process. This article lists some common layout-related attributes. If you need them, you can refer to them and hope to familiarize yourself with common div attributes.
I. attribute list
The Code
Css
Use Div to layout, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics?
Division (split), right, a while ago browsing w3schools, see it is so defined div: the div tag defines a
Css
One months, I'm back, okay, let's keep talking.
In the previous article, the main negation of the use of Div layout this argument, the proposed div should be used to organize the code structure, now we go a little deeper, Div has semantics? The
Div attribute Introduction: What can be added to Div? Div attribute list: divcss5 (music relaxation Chair)
Divcss5 sorts out common attributes in the DIV tag, and uses small instances of each attribute to let everyone know and master the attributes.
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.