如何使用 CSS 控制標記的形狀或外觀?
list-style-type 可以控制標記的形狀或外觀。你可以嘗試執行以下程式碼,瞭解 list-style-type 屬性如何用於無序列表:
示例
<html> <head> </head> <body> <ul style = "list-style-type:circle;"> <li>Apple</li> <li>Mango</li> <li>Grapes</li> </ul> </body> </html>
廣告
list-style-type 可以控制標記的形狀或外觀。你可以嘗試執行以下程式碼,瞭解 list-style-type 屬性如何用於無序列表:
<html> <head> </head> <body> <ul style = "list-style-type:circle;"> <li>Apple</li> <li>Mango</li> <li>Grapes</li> </ul> </body> </html>