3.16 列表樣式
無序列表結構:
有序列表結構:
上面 html 的呈現結果:試著觀察預設的列表樣式。
列表相關 CSS 樣式
list-style
:可選的常用值有 circle、decimal、none、inside、lower-alpha、lower-roman、square、lower-alpha、lower-roman。
可再藉由 margin 和 padding 將預設的樣式消掉。例:
觀察預設的項目符號,改變 list-style
的屬性值:
範例:觀察 ul 及 ol 的預設 box model
請觀察 ul、ol 的預設 box model。
Last updated