tag-6ren"> tag-这看起来应该简单得离谱,但我很难弄明白。 我想复制 函数使光盘图像显示在左侧,但应用于 标记 我有这个,但它不显示光盘镜像。 .list { margin-top: 15px; m-6ren">
gpt4 book ai didi

css - 如何添加列表样式类型 : "disc" to

tag

转载 作者:技术小花猫 更新时间:2023-10-29 10:21:35 25 4
gpt4 key购买 nike

这看起来应该简单得离谱,但我很难弄明白。

我想复制 <li>函数使光盘图像显示在左侧,但应用于

标记

我有这个,但它不显示光盘镜像。

.list {
margin-top: 15px;
margin-bottom: 15px;
list-style:disc outside none;
display:inline;
}

<p class="list"><em>And Much, Much More!</em></p>

如果可能的话,我想避免使用任何图形来模拟子弹。
感谢您的帮助

最佳答案

回答:显示:列表项;

Display 必须设置为 list-item - 不是 inline,也不是 list!

.list {
list-style:disc outside none;
display:list-item;
}

<p class="list"><em>And Much, Much More!</em></p>

关于css - 如何添加列表样式类型 : "disc" to <p> tag,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4764156/

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