首页 > 试题广场 >

如何使列表项标记变为方块

[单选题]
如何使列表项标记变为方块
  • type: square
  • type: 2
  • list-style-type: square
  • list-type: square
选择 C
发表于 2019-06-27 09:36:22 回复(1)
list-style-type
list-style-type 用于设置不同列表列表项的样式
无序列表常使用:
ul {
    list-style-type:circle;  /* 每一项前都是圆圈 */
}
ul {
    list-style-type:square; /* 每一项前都是正方形 */
}
有序列表也可以用 list-style-type 来设置列表项
ol {
    list-style-type:upper-roman;  /* 每一项前面都是大写罗马数字 */
}
ol {
    list-style-type:lower-alpha; /* 每一项前都是小写字母 */
}
有序列表的小写字母如果大于26项再次从 'aa'开始
发表于 2019-07-19 10:45:12 回复(0)
这样也可以
<ul type="square">  <li>123</li>  <li>123</li>  <li>123</li>  <li>123</li>  <li>123</li> </ul>

发表于 2021-11-02 16:53:49 回复(3)
list-style-type 用于设置不同列表列表项的样式。
发表于 2022-07-16 10:58:25 回复(0)
列表:有序列表与无序列表
有序列表  <ul><li></li></ul>  常用样式  li{list-style-type:square}  /li{list-style-type:circle}
发表于 2020-04-23 21:54:13 回复(1)
list-style-type-square
发表于 2022-04-20 18:53:38 回复(0)