以下问题用上了css。如何去掉下划线?若想在整页中都去掉,在<head>与</head>之间加上<style><!--a {text-decoration: none}--></style>若只对特定链接使用,则链接语法为<a href=http://www.ddvip.com/web/html/index1/"你的链接" 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}
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18