2013-01-19 58 views
0

它正在工作,當我將它作爲內聯樣式應用時。外部CSS不適用於div

<div id="footer">@Copyright 2012</div> 

#footer 
{ 
    background-color:Black; 
    color:Silver; 
    width:100%; 
    text-align:center; 
    position:absolute; 
    bottom:0; 
} 
+0

在其他CSS之後是否包含外部CSS?最新的CSS文件將覆蓋以前的文件。 –

回答

1

外觀與Firebug哪種風格贏得在你的。

請注意,訂單聲明您的CSS s在您的網頁事宜,最後勝利。

因此,您可能在另一個樣式表中加載了另一個#footer規則。