开发者

change default hyperlink properties in custom tag

I've got the following.. http://jsfiddle.net/JcLx4/31/ how would I change the properties of the hyper开发者_如何转开发linked text in this example from blue and underlined to black and not underlined?


At a very basic level, like this:

a:link
{
    color: black;
    text-decoration: none;
}

To make it specific to links within your custom tag (incorporating display:block to make your link stretch the width of its container):

ab.s a:link   
{   
    color: #000;   
    display: block;     
    text-decoration: none; 
}

And to change the hover style:

ab.s a:hover
{
    background-color: #000;
    color: #fff; 
}

If you want more information there is a tutorial on this page that explains the different pseudo-classes.


ab.s a{
    text-decoration:none;
    color: #000;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜