16-11-09

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.