更新时间:2022-12-31 16:31:12
默认情况下,项目符号点前有 个空格.如果没有,您可能正在使用某种重置CSS".
There is spacing before bullet points by default. If there isn’t, you are probably using a "Reset CSS" of some kind.
要将间距设置为所需值,请将ul
和li
元素的padding-left
和margin-left
都设置为零,然后将其中之一设置为所需值.
To set the spacing to a desired value, set padding-left
and margin-left
of both ul
and li
elements to zero and then set one of them to the desired value.