2011-10-18 38 views

回答

4

http://jsfiddle.net/N2y88/2/

嘗試這樣的事情

.support p span:first-child { 
    color: #81848A; 
    display: inline-block; 
    padding-right: 10px; 
    text-align: right; 
    width: 50px; 
    float:left; 
} 
.support p span:last-child { 
    display: inline-block; 
    float:left; 
    width:400px; 
} 
.support .cast, .support .director{ 
    color:blue; 
} 

.support p { 
    color: #D0D0D0; 
    margin: inherit; 
    padding: 0.1em 0; 
    clear:both; 
} 
+0

的偉大工程。一個問題是:在IE中最後一個孩子的工作? – Chapsterj

+0

它不工作IE – sandeep

+0

:最後一個孩子的支持在IE中有點不禮貌,但是如果你定義了.support p span並且比使用:first-child(它有7+支持我相信)重新定義寬度爲50並添加其他屬性。 http://jsfiddle.net/N2y88/3/將解決這個問題。 –