html - 如何从 HTML 列表中删除缩进?

标签 html css html-lists

<ol>
<li>1. This Convention shall be binding only upon those Members of the International Labour Organisation whose ratifications have been registered with the Director-General.</li>
<li>2. It shall come into force twelve months after the date on which the ratifications of two Members have been registered with the Director-General.</li>
<li>3. Thereafter, this Convention shall come into force for any Member twelve months after the date on which its ratification has been registered.</li>
</ol>

我有上面的HTML .什么CSS我可以在上面添加编码 HTML这将阻止文本被 <li> 缩进标签?

最佳答案

试试这个:

ol {
  list-style: none;
  padding-left: 0;
}

fiddle :https://jsfiddle.net/5ox2bujd/

关于html - 如何从 HTML 列表中删除缩进?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35760644/

相关文章:

html - 在 2 列列表之间添加水平空间以使其居中

html - 嵌套 UL 中的 Z 索引

javascript - 带有 javascript 的 HTML 表单在 IE 中获取 "NaN"但在 Chrome 中有效

html - 创建一个背景在顶部的透明复选框

javascript - 如果我在向左推菜单中放置超过 4 个元素,为什么动画不起作用?

html - 如何定位父级内的所有标签

html - 无法摆脱菜单中的列表项高度

html - 重启css继承和hover

java - 在struts2中的一行中创建两个按钮

html - 为什么文字会褪色但图像不会褪色?