html - 第二行的边距

标签 html css

我正在尝试从第二行开始为文本留白。我只知道文本间距和边距,但在这种情况下无济于事。操作方法如下图所示。

enter image description here

最佳答案

您可以使用 HTML 中的内置编号列表。即 <ol>标签:

演示:http://jsfiddle.net/x9v2t/

代码:

<ol>
    <li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
    <li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
    <li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
</ol>

关于html - 第二行的边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12597476/

相关文章:

带有文本的 JQuery fadeTo

html - 为什么 float 在父容器中会改变 img 的大小?

javascript - 如何通过标签 "selected"改变背景图片

javascript - 在 jQuery 中对页面上的所有更改进行实时操作?

html - 为什么 "W"字母的中间笔划在我的代码笔上非常尖锐?

html - 这种布局甚至可以用于任何类型的 CSS 网格吗? (柔性、网格、盒模型等)

html - css网格布局实践

css - 在谷歌字体调用中选择性使用 "text"变量

css - 重置 block 元素的宽度

html - parent 的字体是否可以在 iframe 中访问?