The main content of today's study is the list, during exposure to another default homepage: Default. The list is divided into three types: Sequential table <ol>, unordered list <ul> and custom list.
The list of ordered and unordered lists is roughly the same, and the page header is made as an example of an unordered list.
You first need to build an HTML framework, add content to <body>, add <ul> commands, and create
<li></li>, after editing the style in
<! DOCTYPE html>
<style>
h3{(Clear
margin:0px;
/* Inner Border */
border:0px;
}
div{
/* Width (100% indicates width varies with screen resolution) */
width:100%;
/* High */
height:50px;
/* Background color */
/*background-color:blue;*/
}
ul{
width:800px;
height:50px;
Background-color: #0191DA;
/* Outside Box */
margin:0 Auto;
}
li{
width:80px;
height:50px;
/*background-color:yellow;*/
/* Font Color */
Color:white;
/* Text horizontally centered */
Text-align:center;
/* Line Height */
line-height:50px;
/* FLOAT */
Float:left;
/* List Style */
List-style:none;
}
li:hover{
Background-color:orange;
}
</style>
<body>
<div>
<ul>
<li>
<li>
<li>
<li>
<li>
<li>
</ul>
</div>
</body>
List of style editing, just according to the form of <div> editing can, generally, can be used as a <div> to edit the line, so for <ul>, <li> edit or relatively simple operation. Through the late exercises can be mastered.
16-11-09