mirror of
https://github.com/Estom/notes.git
synced 2026-07-09 07:06:19 +08:00
前端笔记整理完成
This commit is contained in:
69
HTML/html5-basics/html-list.md
Normal file
69
HTML/html5-basics/html-list.md
Normal file
@@ -0,0 +1,69 @@
|
||||
## 有序列表
|
||||
|
||||
有序列表也是一列项目,列表项目使用数字进行标记。 有序列表始于 `<ol>` 标签。每个列表项始于 `<li>` 标签。
|
||||
|
||||
### `<ol>` 标签定义了一个有序列表. 列表排序以数字来显示。
|
||||
|
||||
| 属性名 | 值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| start | number | **HTML5不支持,不赞成使用。**请使用样式取代它。 规定列表中的起始点。|
|
||||
| type | 1 A a I i | 规定列表的类型。|
|
||||
|
||||
### `<li>` 标签定义列表项目。
|
||||
|
||||
| 属性名 | 值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| value | number | **HTML5不支持,不赞成使用。**请使用样式取代它。 规定列表项目的数字。|
|
||||
| type | 1 A a I i | 规定列表的类型。|
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>13_有序列表.html</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<h4>Numbered list:</h4>
|
||||
<ol>
|
||||
<li>Apples</li>
|
||||
<li>Bananas</li>
|
||||
<li>Lemons</li>
|
||||
<li>Oranges</li>
|
||||
</ol>
|
||||
<h4>Letters list:</h4>
|
||||
<ol type="A">
|
||||
<li>Apples</li>
|
||||
<li>Bananas</li>
|
||||
<li>Lemons</li>
|
||||
<li>Oranges</li>
|
||||
</ol>
|
||||
<h4>Lowercase letters list:</h4>
|
||||
<ol type="a">
|
||||
<li>Apples</li>
|
||||
<li>Bananas</li>
|
||||
<li>Lemons</li>
|
||||
<li>Oranges</li>
|
||||
</ol>
|
||||
<h4>Roman numbers list:</h4>
|
||||
<ol type="I">
|
||||
<li>Apples</li>
|
||||
<li>Bananas</li>
|
||||
<li>Lemons</li>
|
||||
<li>Oranges</li>
|
||||
</ol>
|
||||
<h4>Lowercase Roman numbers list:</h4>
|
||||
<ol type="i">
|
||||
<li>Apples</li>
|
||||
<li>Bananas</li>
|
||||
<li>Lemons</li>
|
||||
</ol>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
## 无序列表
|
||||
|
||||
无序列表是一个项目的列表,此列项目使用粗体圆点(典型的小黑圆圈)进行标记。
|
||||
|
||||
### `<ul>` 标签定义无序列表。
|
||||
Reference in New Issue
Block a user