HTML网页列表标记学习教程(9)

http://www.itjxue.com  2015-08-05 23:10  来源:未知  点击次数: 

无序列表的类型属性TYPE

在无序列表的默认情况下,使用●作为列表的开始,我们可以通过TYPE属性将无序列表的类型设置为○或□。

基本语法

<ul type=value>
</ul>

语法解释

其中value的值如下表所示

描述
disc
circle
square

文件范例:7-8.htm

通过type属性设定无序列表编号的类型。
01 <!-- ------------------------------ -->
02 <!-- 文件范例:7-8.htm -->
03 <!-- 文件说明:设定无序列表编号类型-->
04 <!-- ------------------------------ -->
05 <html>
06 <head>
07 <title>设定无序列表编号类型</title>
08 </head>
09 <body>
10 <h2>图像设计软件</h2>
11 <ul type=circle>
12 <li>Photoshop
13 <li>Illustrator
14 <li>Freehand
15 <li>CorelDraw
16 </ul>
17 <hr>
18 <h2>图像设计软件</h2>
19 <ul type=square>
20 <li>Photoshop
21 <li>Illustrator
22 <li>Freehand
23 <li>CorelDraw
24 </ul>
25 <body>
26 </html>

文件说明

第11行定义了列表的编号类型为○,第19行定义了列表的编号类型为□。

(责任编辑:IT教学网)

更多

推荐HTML/Xhtml文章