【发布时间】:2021-12-25 19:58:30
【问题描述】:
分享一个示例 sn-p。从视觉上看,<ul> 和 <ol> 看起来都一样。那为什么我们需要单独<ul>呢?
<head>
<title>Change Numbering Type in an HTML Unordered List Using CSS</title>
<style>
ol {
list-style-type: disc;
}
</style>
</head>
<body>
<ol>
<li>Fasten your seatbelt</li>
<li>Starts the car's engine</li>
<li>Look around and go</li>
</ol>
<hr/>
<ul>
<li>Fasten your seatbelt</li>
<li>Starts the car's engine</li>
<li>Look around and go</li>
</ul>
</body>
</html>
【问题讨论】:
标签: html css html-lists