HTML/Xhtml

关注公众号 jb51net

关闭
网页制作 > HTML/Xhtml >

HTML网页列表标记学习教程

佚名

有序列表的起始属性START
在默认的情况下,有序列表从数字1开始记数,这个起始值通过start属性可以调整,并且英文字母和罗马字母的起始值也可以调整。
基本语法 <ol start=value> </ol>
语法解释
其中不论列表编号的类型是数字、英文字母还是罗马字母,value的值都是其始的数字。 文件范例:7-3.htm
通过start属性设定有序列表的起始编号。
01 <!-- ------------------------------ -->
02 <!-- 文件范例:7-3.htm -->
03 <!-- 文件说明:设定有序列表起始编号-->
04 <!-- ------------------------------ -->
05 <html>
06 <head>
07 <title>设定有序列表起始编号</title>
08 </head>
09 <body>
10 <h2>图像设计软件</h2>
11 <ol start=5>
12 <li>Photoshop
13 <li>Illustrator
14 <li>Freehand
15 <li>CorelDraw
16 </ol>
17 <hr>
18 <h2>图像设计软件</h2>
19 <ol type=I start=3>
20 <li>Photoshop
21 <li>Illustrator
22 <li>Freehand
23 <li>CorelDraw
24 </ol>
25 </body>
26 </html> 文件说明
第11行定义了数字有序列表从5开始,第19行定义了罗马数字的有序列表从Ⅲ开始。