📅  最后修改于: 2020-11-04 01:36:07             🧑  作者: Mango
ul是HTML中的标签。 HTML
此标记还使用属性类型,该属性类型设置列表项的项目符号样式。我们可以在type属性中指定以下值:
我们可以很容易地理解
示例1:本示例使用具有不同值的type属性。
Ul tag with Type attribute
Hello User!....
The following list uses the Square mark in front of list items.
- Cars
- bikes
- Aeroplanes
- Trains
- Ships
The following list uses the Circle mark in front of list items.
- BMW
- Audi
- Mercedes
- Jaguar
- Lamborghini
The following list uses the Disc mark in front of list items.
- Apache
- KTM
- R15
- Ducati
- Harley-Davidson
以下屏幕快照显示了示例1的输出:
示例2:此示例描述如何在HTML中创建嵌套的无序列表:
Nested Unordered list
Hello User!....
The following list uses the Square mark in front of list items.
- Cars:
- BMW
- BMW X5
- BMW X7
- BMW Z4
- BMW M2
- Audi
- Audi Q8
- Audi Q7 2020
- Audi Q3
- Audi A7
- Mercedes
- Jaguar
- Jaguar XF
- Jaguar XE
- Jaguar E Pace
- Jaguar I Pace
- Lamborghini
- bikes:
- Apache
- KTM
- R15
- Ducati
- Harley-Davidson
- Aeroplanes
- Air India
- Indigo
- Vistara
- GoAir
- SpiceJet
- Trains
- Ships
下面的屏幕截图显示了示例2的输出: