简体   繁体   English

CSS Html有序列表 - 数字下的文本

[英]CSS Html Ordered List - Text under number

I think it is an easy question. 我认为这是一个简单的问题。 What I need to do is put the text of long lines under the number of the list. 我需要做的是将长行的文本放在列表的编号下面。 Something like this: 像这样的东西:

1 Text text text text Text text text textText text text textText text text textText text text textText text text textText text text textText text text textText text text textText text text text. 1文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本。

In my code I'm using the following structure: 在我的代码中,我使用以下结构:

< ol> <ol>
< li> <li>
< p> Text <p>文字

< /li> </ li>
< /ol> </ ol>

Some simple solution? 一些简单的解决方 Thanks 谢谢

Try this: 尝试这个:

ol {
  list-style-position:inside;
}

The default value is outside . 默认值在outside

Demo. 演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM