网页问题:怎样写不带下划线的超级链接代码?
发布网友
发布时间:2022-05-13 23:26
我来回答
共1个回答
热心网友
时间:2022-05-14 00:56
DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="Content-Type"
content="text/html;
charset=gb2312"
/>
<title>无标题文档</title>
<style
type="text/css">
<!--
a:link
{
text-decoration:
none;
}
a:visited
{
text-decoration:
none;
}
a:hover
{
text-decoration:
none;
}
a:active
{
text-decoration:
none;
}
-->
</style>
</head>
<body>
<a
href="
http://blog.sina.com.cn/longpoemnover">
黄龙书剑博客</a></body>
</html>
将此文件保存为*.htm
用IE打开就能看到效果了