CSS 伪类的效果
来源:互联网 发布:留学生回国 知乎 编辑:程序博客网 时间:2024/05/20 01:08
<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>
<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>
阅读全文
0 0
- CSS 伪类的效果
- CSS伪类的动画和过渡效果应用
- css的伪类
- css的伪类
- css的伪类与伪元素
- CSS的伪类和伪元素
- css的伪类和伪元素
- CSS的三个伪类
- css-伪类的理解
- CSS伪类的使用
- css的伪类说明
- CSS的active伪类
- CSS伪类的实例
- css伪类的顺序
- CSS的伪类选择器
- CSS 3,用伪元素制作不一样的阴影效果
- css伪类before after 实现立体效果
- 用css伪类实现提示框效果
- HDU5968 异或密码 —— 二分 + 边界的细节处理
- iOS全景SDK
- 对自己的反省和总结
- 多种方法获取json中的键(key)与值(value)
- python3 [爬虫入门实战]scrapy爬取盘多多五百万数据并存mongoDB
- CSS 伪类的效果
- [HDU4366]Successor 线段树
- visual studio2010问题导致CMake执行例子时出错Error in configuration process,project files may be invalid
- POJ1651 Multiplication Puzzle
- python 读写CSV 文件
- PHP连接mysql后pcntl_fork产生的错误
- 函数指针小结
- dubbo配置详解
- 段落中字体围绕第一个字 或者字体围绕图片