2011-03-28 71 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}