列表样式的外部不显示,但内部显示 [英] list-style outside isn't displayed but inside is

查看:74
本文介绍了列表样式的外部不显示,但内部显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此css可以看到"li"中内容之前的黑色光盘: li{ list-style: disc inside none; } 但是他们没有显示以下代码: li{ list-style: disc outside none; } 如何使它们可见?

The black discs before content inside the "li" are visible with this css: li{ list-style: disc inside none; } But they don't show up with this code: li{ list-style: disc outside none; } How can I make them visible ?

推荐答案

将父级"ul"的padding-left属性设置为"20px",它们就会出现.

Set the padding-left attribute of the parent "ul" to something like: "20px", and they will show up.

这篇关于列表样式的外部不显示,但内部显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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