CSS

列表相关的属性

suaxi
2024-03-05 / 0 评论 / 24 阅读 / 正在检测是否收录...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>列表相关的属性</title>
    <style>
        li {
            background-color: skyblue;
        }

        ul {
            /* 列表符号 */
            /* list-style-type: decimal; */
             /* 列表符号的位置 */
            /* list-style-position: outside; */
            /* 自定义列表符号 */
            /* list-style-image: url(""); */

            /* 复合属性 */
            list-style: decimal outside;
        }
    </style>
</head>
<body>
    <ul>
        <li>《凶手找到了,@带带大师兄》</li>
        <li>《一夜暴富》</li>
        <li>《白日做梦》</li>
    </ul>
</body>
</html>
0

评论 (0)

取消