2012-11-10 27 views
0

我有一個網站,有帖子列表,數字1到50。它的工作原理在Chrome,Firefox和IE 10,但不是在IE 8或更低....如何開始有序列表(IE8)的開始或值?

我有這樣的一個:<ol id="post-list" class="lol" start="1">

CSS:

#entry-list > li:before { 
    border-bottom: 1px solid #D9D9D9; 
    color: gray; 
    content: attr(value); 
    width: 100%; 
} 

#entry-list { 
    list-style: none outside none; 
    margin-top: 0; 
    word-wrap: break-word; 
} 

    #entry-list .content{margin-bottom:10px} 
#entry-list>li{position:relative} 
#entry-list>li:not(:last-child){margin-bottom:30px} 

問題:無邊框底部在IE 8(或更低),並從1開始,沒有屬性/值/列表我怎樣才能使它發揮作用?爲什麼我的特定於IE的樣式表不響應#entry-list > li:before

回答

0

看看這個答案可以幫助,爲:發行前:How can I get IE8 to accept a CSS :before tag?

至於「開始」 ...它應該工作。這樣做時你使用任何css規範化?然而,我們需要看到更多的代碼。不過,你會意識到,你發佈的CSS會針對一個帶有入口列表ID而不是後置列表的對象,對吧?

+0

嗯,這是重要的代碼,我想不出任何其他代碼可能需要嗎? :before語句由於某種原因不起作用。我使用IE的兼容性視圖,也許這是問題... 無論如何,謝謝你的回答。 – user1814289