http://krill.larvit.se/resihop_dev/右列有序列表。帶列表樣式位置的列表項上的意外間距:Internet Explorer中的內部
HTML:
<ol class="instructions">
<li>
<p>För att hitta samåkningar, klicka på kartan på platsen du vill åka ifrån.</p>
</li>
</ol>
我認爲這是相關的CSS:
.instructions{
padding-left: 0;
}
.instructions li{
padding: 0 10px;
margin: 0 0 10px 0;
list-style-position: inside;
font-size: 25px;
}
.instructions li p{
font-size: 12px;
display: inline-block;
vertical-align: middle;
width: 360px;
}
在Internet Explorer 9,大空間上的 「1」 的右側添加。我能做些什麼呢?如果可能的話,我想保留html標記。
我沒有提到它,所以你的回答是公平的,但我在我的li:s上使用border + background-color。 – Himmators 2012-08-13 18:18:15
你是否爲此做出了決定?只是有一個想法,你可以使用多個背景圖片,但IE8和更低版本不支持。 – 2012-08-15 08:48:38