gpt4 book ai didi

css - 放 ol, ul { list-style : none; } in css reset 有什么好处

转载 作者:太空宇宙 更新时间:2023-11-04 05:32:44 24 4
gpt4 key购买 nike

  1. 放置ol, ul { 有什么好处
    列表样式:无; }
    在 css 重置中。虽然我们只保留列表样式 none在导航中。由于保留这个如果我们想要正常风格的内容“有序列表”和“无序列表”item 那么我们需要重新定义。
  2. ok to put ul { list-style: none; 但是 ol { 的好处是什么?
    列表样式:无; }

Link of eric meyer reset

最佳答案

我会说没有任何好处。把 { list-style: none; } 在您需要的地方,正如您已经说过的,最常见的是在导航中。
将其定义为再次显示元素符号是错误的用法(当然除非您想更改元素符号类型)。

我想添加 ol 只是为了涵盖所有类型的列表。

关于css - 放 ol, ul { list-style : none; } in css reset 有什么好处,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2204850/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com