The site with DIV+CSS mode has the following advantages: 1, the performance and content phase separation 2, Code concise, improve page browsing speed 3, easy maintenance and revision 4, improve the search engine index efficiency of the page.
There are three types of CSS placed in HTML files: inline, inline, and three.
Feel the CSS must be clear about its six-medium selector: 1, HTML selector 2, class selector 3, ID selector 4, pseudo-element selector 5, association selector 6, combo selector.
CSS includes six categories of attributes: 1, Font properties 2, Text Properties 3, background properties 4, Border Properties 5, Mouse Properties 6, List properties.
The following examples:
—————————————— HTML ————————————————————--
<! DOCTYPE html>"en">"UTF-8"> <title> define column blocks </title> <link rel="stylesheet"href="./style.css"/>"wrapper"> <divclass="title"> class="List"> <ul> <li><a href=""> A big bald </a></li> <li><a href=""> Two large bald </a></li> <li><a href=""> Three large bald </a></li> <li><a href=""> Four large bald </a></li> <li><a href=""> Five large bald </a></li> <li><a href=""> Six large bald </a></li> <li><a href=""> Seven large bald </a></li> <li><a href=""> Eight large bald </a></li> <li><a href=""> Nine large bald </a></li> <li><a href=""> 10 Large bald </a></li> <li><a href="">11 a big bald head </a></li> <li><a href="">12 a big bald head </a></li> </ul> </div> <divclass=" One"> <a href=""></a> </div></div></body>—————————————— Css ————————————————————
body{Text-Align:center; font:12px Arial, song Body;} #wrapper {margin:0Auto; padding:0px; width:300px; Text-Align:left;}. title{Font:left; Width: -%; height:24px; Background:url (./images/titbg.gif);}. Title h3{margin:0px; padding:0px; Line-height:24px; Font-size:12px; Text-indent:30px; Background:url (./images/tittb.gif) no-repeat3% -%;}. list{width:298px!important; width:300px; float: Left; border:1px solid #d8d8d8; Border-top:0px;}. List ul {float: Left; List-style-Type:none; margin:0px; padding:0px;}. List ul Li {float: Left; Line-height:20px; margin:0px 5px; Width: $%; Background:url (./images/sidebottom.gif) repeat-x -%Bottom;}. List ul li a{padding-left:12px; Background:url (./images/bullet.gif) no-repeat0 -%}.one{height:5px; Width: -%; float: Left; Overflow:hidden}a:link, a:visited{text-Decoration:none; Color:green;} a:hover{position:relative; top:1px; left:1px; Text-Decoration:underline; Color:black;}
————————————————————————————
Do are some of the most basic things, I hope you have some valuable advice! Thanks, man.
Preliminary application of Div+css