欢迎光临
我们一直在努力

html怎么向超链接添加其他样式

这篇文章给大家分享的是有关html怎么向超链接添加其他样式的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

<html>
<head>
<style type="text/css">
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}

a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}

a.three:link {color: #ff0000}
a.three:visited {color: #0000ff}
a.three:hover {background: #66ff66}

a.four:link {color: #ff0000}
a.four:visited {color: #0000ff}
a.four:hover {font-family: monospace}

a.five:link {color: #ff0000; text-decoration: none}
a.five:visited {color: #0000ff; text-decoration: none}
a.five:hover {text-decoration: underline}
</style>
</head>

<body>
<p>请把鼠标移动到这些链接上,以搜检功效:</p>

<p><b><a class="one" href="/index.html" target="_blank">这个链接篡改色采</a></b></p>
<p><b><a class="two" href="/index.html" target="_blank">这个链接改变字体大小</a></b></p>
<p><b><a class="three" href="/index.html" target="_blank">这个链接改动后台色采</a></b></p>
<p><b><a class="four" href="/index.html" target="_blank">这个链接扭转字体系列</a></b></p>
<p><b><a class="five" href="/index.html" target="_blank">这个链接窜改文本装饰</a></b></p>
</body>

</html>

感谢各位的阅读!关于“html怎么向超链接添加其他样式”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。