具有不同缩进的项目符号列表
我可以在我的网站上制作使用
- 的项目符号列表吗?
- 和
- 标签有不同的缩进距离吗?
- 元素一
- 元素二 and even this line which is not in an <li> tag are indented
- 的列表元素标签
我想缩进一些元素,但默认距离太大而 sans-indent 太小。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为默认缩进是
40px
,这使它减半。I think the default indentation is
40px
, this halves it.调整两个压痕的稍微干净的方法。边距和内边距有所不同,因此请使用最适合您的方式。
A slightly cleaner way to adjust both of the indentations. Margin and padding differ, so use whichever suits you best.