我需要一个没有任何项目符号的无序列表 [英] I need an unordered list without any bullets

查看:145
本文介绍了我需要一个没有任何项目符号的无序列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个无序列表.我觉得无序列表中的项目符号很麻烦,因此我想删除它们.

I have created an unordered list. I feel the bullets in the unordered list are bothersome, so I want to remove them.

是否可以有没有项目符号的列表?

Is it possible to have a list without bullets?

推荐答案

您可以通过设置

You can remove bullets by setting the list-style-type to none on the CSS for the parent element (typically a <ul>), for example:

ul {
  list-style-type: none;
}

如果还希望删除缩进,则可能还需要在其中添加padding: 0margin: 0.

You might also want to add padding: 0 and margin: 0 to that if you want to remove indentation as well.

有关列表格式设置技巧的详细介绍,请参见列表.

See Listutorial for a great walkthrough of list formatting techniques.

这篇关于我需要一个没有任何项目符号的无序列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆