带有不同缩进的项目列表 [英] bulleted list with different indentation
本文介绍了带有不同缩进的项目列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在我的网站上制作使用< ul>的项目符号列表吗?和< li>标签具有不同的缩进距离?
- 元素1
- $ b,甚至这行
也不在< li>标签缩进
我想缩进某些元素,但默认距离过大sans-indent太少了。
解决方案
< ul style =padding-左:20像素>
< li>元素1< / li>
< li>元素2< / li>
< / ul>
我认为默认缩进是 40px
,这把它减半。
Can I make bulleted lists on my site that use <ul> and <li> tags have a different indentation distances?
- Element One
- Element Two and even this line which is not in an <li> tag are indented
I would like to indent some elements, but the default distance is too much and the sans-indent is too little.
解决方案
<ul style="padding-left:20px">
<li>Element 1</li>
<li>Element 2</li>
</ul>
I think the default indentation is 40px
, this halves it.
这篇关于带有不同缩进的项目列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文