2011-03-28 73 views
1

我做了一個css文件有:CSS鏈接標題問題

a:link {font-size: 24px;} 
#header {font-size:8pt } 

我的HTML文件中包含一個div id爲「頭」,這樣只包含一些鏈接。我試圖使標題中的鏈接爲8pt,文檔其餘部分的鏈接爲24px。

我該怎麼做?

回答

4

像這樣

a:link {font-size: 24px;} 
#header a:link {font-size:8pt } 
3

也許嘗試:

#header a {font-size: 8pt;} 

,而不是

#header {font-size: 8pt;} 

Demo

0
a {font-size:24pt} 
#header a {font-size:8pt}