+ -
当前位置:首页 → 问答吧 → IE6 IE7下ol li无法显示list-style-type

IE6 IE7下ol li无法显示list-style-type

时间:2011-04-18

来源:互联网

其它浏览器都正常,就是IE6、IE7下list-style-type没有,请高手指教如何解决

测试代码如下:

HTML code

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
p,form,ul,li{
list-style:none;
margin:0px;padding:0px;
}
.aa ol {
    width:700px;
}
.aa li {
    list-style-type:decimal;
}
</style>
<title>无标题文档</title>
</head>

<body>
<div class="aa">
<ol>
<li></li>
<li></li>
<li></li>
</ol>
</div>
</body>

作者: bluell   发布时间: 2011-04-18

CSS code
.aa li {
    list-style:decimal inside;
}
/**/
.aa li { list-style:decimal; margin-left:25px; }

作者: T5500   发布时间: 2011-04-18

热门下载

更多