-1

这是我的代码。如何从列表项中删除缩进?代码去哪儿了?

<ul>
    <li>The comment</li>
    <li>The product(s) involved</li>
    <li>The source of comment</li>
</ul>

4

1 回答 1

0

您可以使用几行 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>

于 2018-07-26T19:41:16.140 回答