【发布时间】:2012-06-02 00:57:59
【问题描述】:
我遇到了 IE7 列表元素错误的问题。和 的项目符号(或数字)显示在页边距之外。如何为 IE 解决这个问题?根据我的阅读,在 IE7 li 中指定高度/宽度时,这似乎是一个问题。图片可以在这里找到:
火狐:
IE7:
我有一个带有 Meyer 重置的样式表。
#create_request li {
display: list-item;
width: 313px;
height: 23px;
background-color: #E3E3E3;
list-style: decimal;
list-style-position: inside;
padding-left: 25px;
padding-top: 5px;
}
#create_request li.alternate {
background-color: white;
}
#create_left li:hover {
width: 356px;
background: url('/images/list_add.png') 100% 100% no-repeat;
background-color: #B0B0B0;
cursor: pointer;
}
【问题讨论】:
-
您有重置样式表吗?如果您不这样做,则可能是导致此问题的原因。
标签: html css internet-explorer html-lists