html - list-style-type 和 list-style 有什么区别?

标签 html css

当我谈到样式列表时,我发现自己不确定 list-stylelist-style-type 之间的区别。它们是一样的吗?

最佳答案

来自 www.w3schools.com :

"The list-style shorthand property sets all the list properties in one declaration."

here

"The list-style-type specifies the type of list-item marker in a list."

list-style是设置list-style-typelist-style-positionlist-style的简写-image 属性全部在一个声明中。

关于html - list-style-type 和 list-style 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19889069/

相关文章:

html - 收缩和居中 bootstrap 3 形式

jquery - 悬停 BigCommerce 网站上的图像更改

javascript - 如何在每次输入更改时运行动画?

css - IE9 的 future : Opacity + Performance

jquery - 自定义 CSS 属性或 HTML 属性?

html - 使用 Bootstrap 的 PrettyPrint 没有响应

html - 选择包含特定 id 的上一个 div

html - 结构化测试工具中的基本标签

javascript - 如果 div 不包含此类,则执行以下操作

html - 使用变换 : rotate(xdeg) 文本从 div 溢出