如何控制下划线的样式!比如颜色,粗细,样式等等!

<html>
<head>
<title> </title>
<meta   name= "GENERATOR "   content= "Microsoft   Visual   Studio   .NET   7.1 ">
<meta   name=ProgId   content=VisualStudio.HTML>
<script   language=javascript>
function   showLine()
{
var   e=event.srcElement;
e.style.borderBottom= "10px   red   solid ";
}
function   hideLine()
{
var   e=event.srcElement;
e.style.borderBottom= " ";
}
</script>
</head>
<body>

<a   style= 'text-decoration:none   '   href= "http://www.ssm1226.com "   onmouseover= 'showLine() '   onmouseout= "hideLine() "> ssm1226 </a>

</body>

还有一种方法是图片背景啦!

posted @ 2011-06-29 14:17  xgcdd  阅读(1902)  评论(0编辑  收藏  举报