CSS列表风格类型不工作 [英] CSS list-style-type not working

查看:90
本文介绍了CSS列表风格类型不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CSS中设置了 list-style-type ,但由于某种原因它不显示。

I have set the list-style-type in CSS, but for some reason it's not showing it.

CSS:

ol {
    list-style-type:decimal;
    padding-left: 0px;
}

和html:

<ol>
    <li>...</li>
</ol>


推荐答案

由于您的填充重置,在页面的左侧。尝试添加:

Because of your padding reset, the numbers are actually off to the left of the page. Try adding:

list-style-position: inside;

这篇关于CSS列表风格类型不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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