使用 CSS 將所有列表屬性指定到一個表示式中


 list-style 屬性允許你將所有列表屬性指定到一個表示式中。

示例

你可以嘗試執行以下程式碼,將所有屬性(如 list-style、type 等)在一行中列出

<html>
   <head>
   </head>
   <body>
      <ul style = "list-style: inside circle;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ul>
      <ol style = "list-style: outside lower-alpha;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ol>
   </body>
</html>

更新於:2020-02-03

87 瀏覽量

開啟你的 職業 生涯

完成課程以獲得認證

開始
廣告
© . All rights reserved.