|
|
超链接相关问题
©飘蓝工作室——雅虫,转载请注明出处 以下问题用上了css,若想更详细一点了解css,可参见雅虫的css简明教程
如何去掉下划线?
若想在整页中都去掉,在<head>与</head>之间加上 <style> <!-- a
{text-decoration:
none} --> </style> 若只对特定链接使用,则链接语法为 <a href="你的链接"
style=text-decoration: none></a>
如何使鼠标放到有超级链接的字体时出现字体颜色变化?
在<head>与</head>之间加上 <style> <!-- a:link
{color:$} a:visited {color:$} a:active {color:$} a:hover
{color:$} --> </style>
其中link是超链接的颜色,visited是访问过的链接颜色,hover是鼠标移上去的颜色。把$换成你需要的颜色,例如black或#000000。还可与下划线一起使用,如
a:hover{color:$;text-decoration: none}
|