html - 如何从列表项中删除缩进
问题描述
这是我的代码。如何从列表项中删除缩进?代码去哪儿了?
<ul>
<li>The comment</li>
<li>The product(s) involved</li>
<li>The source of comment</li>
</ul>
解决方案
您可以使用几行 CSS(在样式表中)来完成:
.nobullets {
list-style-type: none;
padding: 0;
margin: 0; /* Optional */
}
<ul class="nobullets">
<li>The comment</li>
<li>The product(s) involved</li>
<li>The source of comment</li>
</ul>
推荐阅读
- python - 单击 Dash 中的按钮后,在回调之间构造和传递数据帧
- python - python - 如何在python中使用pandas从excel表中获取确切的单元格文本而不是公式文本?
- google-cloud-platform - GCP - 服务帐户密钥 - JSON 下载失败
- express - DEP0018 带快速 API
- c++ - 在 cpp 中将堆栈作为结构元素处理
- python - 如何在 pygame 中进行方形和圆形之间的碰撞以触发游戏结束?
- c# - Xamarin 与 .Net 框架
- python - 如何从我的列表中取出 x 和 y,以便我可以使用它来创建图表
- java - 没有合格的 bean
- asp.net-core - 如何将依赖项注入 JsonConverter<>?