开发者

Modifying links design for a tumblr theme

开发者 https://www.devze.com 2023-04-04 23:49 出处:网络
I\'m trying to modify the way links display in the theme I\'m currently working onwith the a:link a:hover method in a css file but it don\'t work and I can\'t understand why... Any help ? Tha开发者_开

I'm trying to modify the way links display in the theme I'm currently working on with the a:link a:hover method in a css file but it don't work and I can't understand why... Any help ? Tha开发者_开发知识库nk you


You can try this (note a:link doesn't exist in CSS):

a {
   text-decoration:none;
   color:#000;
   font-style:italic;
}
font
a:hover {
   text-decoration:underline;
   color:#000;
}

a:visited {
   color:#000;
}

"a" is the link. text-decoration: none removes the underline, text-decoration: underline adds the underline. font-style:italic adds an italic to the link. the color #000 is black and using that color in a:visited ensures that the link stays black after it's visited (I didn't know if you would want that so I added it anyway).

0

精彩评论

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