通过CSS 列表属性可以放置、改变列表项标志,或者将图像作为列表项标志。
代码整理自w3school:http://www.w3school.com.cn
效果图:
示例代码:
CSS 列表样式 CSS 列表属性允许你放置、改变列表项标志,或者将图像作为列表项标志。
(一)设置列表的列表项标志:list-style-type
(二)设置自定义图标为列表的列表项标志:list-style-image
(三)设置列表项标志的位置:list-style-position
(1)inside
(2)outside
(四)将以上3个列表样式属性合并为一个属性:list-style
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn