开发者

css links header problem

开发者 https://www.devze.com 2023-02-20 04:00 出处:网络
I\'ve made a css file with: a:link {font-size: 24px;} #header {font-size:8pt } My html file contains a div with id=\"header\" and this contains only some links.I\'m trying to make the links in the

I've made a css file with:

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

My html file contains a div with id="header" and this contains only some links. I'm trying to make the links in the header to be 8pt and the links in the rest of the document to be 24px.

How can I do t开发者_Python百科his?


Like this

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


Perhaps try:

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

instead of

#header {font-size: 8pt;}

Demo


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

精彩评论

暂无评论...
验证码 换一张
取 消