通过伪类选择器调整链接属性
来源:互联网 发布:plc和单片机有什么区别 编辑:程序博客网 时间:2024/05/22 05:07
<!doctype html>
<!--利用伪类选择器设置链接的属性参数-->
<html>
<head>
<meta http-equiv="charset" content="UTF-8">
<title>测试页</title>
<style>
a.a1:link{
font-family:"微软雅黑";
font-size:10px;
text-decoration:overline;
color:blue;
}
/*伪类选择器直接改变a1类的link属性*/
a.a1:hover{
color:red;
}
/*伪类选择器直接改变a1类的hover属性*/
a.a2:link{
font-family:"宋体";
font-size:19px;
text-decoration:none;
color:black;
}
a.a2:hover{
color:yellow;
}
a.a3:link{
font-family:"楷体";
font-size:20px;
text-decoration:line-through;
color:green;
}
a.a3:hover{
color:pink;
}
</style>
</head>
<body>
<a href="http://www.baidu.com" class="a1">链接1  </a>
<a href="http://www.baicu.com" class="a2">链接2  </a>
<a href="http://www.baidu.com" class="a3">链接3  </a>
</body>
</html>
<!--利用伪类选择器设置链接的属性参数-->
<html>
<head>
<meta http-equiv="charset" content="UTF-8">
<title>测试页</title>
<style>
a.a1:link{
font-family:"微软雅黑";
font-size:10px;
text-decoration:overline;
color:blue;
}
/*伪类选择器直接改变a1类的link属性*/
a.a1:hover{
color:red;
}
/*伪类选择器直接改变a1类的hover属性*/
a.a2:link{
font-family:"宋体";
font-size:19px;
text-decoration:none;
color:black;
}
a.a2:hover{
color:yellow;
}
a.a3:link{
font-family:"楷体";
font-size:20px;
text-decoration:line-through;
color:green;
}
a.a3:hover{
color:pink;
}
</style>
</head>
<body>
<a href="http://www.baidu.com" class="a1">链接1  </a>
<a href="http://www.baicu.com" class="a2">链接2  </a>
<a href="http://www.baidu.com" class="a3">链接3  </a>
</body>
</html>
阅读全文
0 0
- 通过伪类选择器调整链接属性
- CSS选择器:属性选择器+后代选择器+子元素选择器+相邻兄弟选择器+伪类+伪元素
- 伪对象选择器&&属性选择器
- CSS伪类选择器之属性选择
- CSS3选择器(基础选择器、属性选择器、伪类选择器、选择器策略)
- CSS3第一日--属性选择器与伪类选择器
- CSS学习(二)-结构伪类选择器、属性选择器
- CSS3之选择器1(属性选择器,结构伪类)
- 【CSS3】选择器(属性 & 结构性伪类)--慕课网【学习总结】
- CSS伪类选择器和CSS常用属性
- css选择器-伪类选择器
- CSS伪类选择器
- css3 伪类选择器
- CSS-伪类选择器
- 伪类选择器
- css3伪类选择器
- 结构性伪类选择器
- CSS3伪类选择器
- C语言------文件操作+字符串里的运算
- No rule to make target `include/config/auto.conf', needed by `include/ config/kernel.release'. stop
- LeetCode 之 Median of Two Sorted Arrays
- MP3播放
- C++——面向对象(二)——默认的构造函数(2)
- 通过伪类选择器调整链接属性
- Java多线程”JUC”集合中的CopyOnWriteArraySet
- 编译gnutls找不到nettle3.1的问题
- 实现基于Haproxy+Keepalived负载均衡高可用架构
- Linux——高性能服务器编程,多进程编程
- bootstrap之breadcrumb&panel样式
- 在win10中安装并配置多个JDK不同的版本
- Achartengine.jar绘制动态图形二 --柱状图
- PAT (Basic Level) Practise (中文)1048. 数字加密(20)