我可以移除子弹而不只是隐藏它们吗?
当我使用代码 list-style: none;要删除子弹,看起来它只是隐藏它们,因为对齐偏离中心,就好像子弹只是看不见但仍然存在。如何使我的列表居中对齐?
此图显示了未隐藏的子弹。
在此图像中,当我隐藏项目符号时,列表偏离中心,就好像项目符号不可见但仍然影响对齐。
When I use the code list-style: none; to remove the bullets, it appears it's just hiding them, because the alignment is off center as if the bullets are just invisible but still there. How can I make the alignment centered for my lists?
This image shows the bullets unhidden.
In this image, when I hide the bullets, the list is off center, as if the bullet is invisible but still affecting the alignment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您所要做的就是删除列表上的
padding-left
。All you should have to do is remove the
padding-left
on the list.尝试将此代码与您的列表项类一起使用,它可能会工作并且会与中心对齐
Try this code with your list item class it might work and will aline to center