链接样式优先级(特殊性)小结
来源:互联网 发布:ipad显示无法加入网络 编辑:程序博客网 时间:2024/05/03 22:31
链接样式因为其特殊性(因为用到了伪类),所以表现比较丰富。而且因为链接的重要性,所以对于链接样式的控制就显的特别重要,但是因为样式优先级(也有叫做特殊性的)不同于其他编程语言,有其独特性
<!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=utf-8" />
<meta name="Keywords" content="YES!B/S!" />
<meta name="Description" content="This page is from http://Justinyoung.cnblogs.com" />
<title>CSS/Javascript demo</title>
<style type="text/css">
/*优先级从上到下依次增加*/
a{
color:aqua;
}
a:link,a:visited,a:hover,a:active{
color:red;
}
.aClass:link,.aClass:visited,.aClass:hover,:active{
color:navy;
}
a.aClass:link,a.aClass:visited,a.aClass:hover,a.aClass:active{
color:green;
}
#aID:link,#aID:visited,#aID:hover,#aID:active{
color:blue;
}
a#aID:link,a#aID:visited,a#aID:hover,a#aID:active{
color:coral;
}
/**下面这个样式和本文主题没有关系**/
p:first-letter {
font-size:260%;
float:left;
padding:0 2px 0 0;
font-family:"楷体_GB2312";
font-weight:bold;
color:#e00;
}
</style>
</head>
<body>
<div><a href="http://justinyoung.cnblogs.com/" class="aClass" id="aID">i'm a link.</a></div>
<p>
链接样式因为其特殊性(因为用到了伪类),所以表现比较丰富。而且因为链接的重要性,所以对于链接样式的控制就显的特别重要,但是因为样式优先级(也有叫做特殊性的)不同于其他编程语言,有其独特性,所以我感觉有必要将这些总结记录下来以备忘。
<br/>
工作中的一些小的总结,没有什么内容,只是自己脑子太笨,好在有个笔头。各位看官看看便是,便不要再嘲笑没有技术含量了。呵呵~
</p>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="YES!B/S!" />
<meta name="Description" content="This page is from http://Justinyoung.cnblogs.com" />
<title>CSS/Javascript demo</title>
<style type="text/css">
/*优先级从上到下依次增加*/
a{
color:aqua;
}
a:link,a:visited,a:hover,a:active{
color:red;
}
.aClass:link,.aClass:visited,.aClass:hover,:active{
color:navy;
}
a.aClass:link,a.aClass:visited,a.aClass:hover,a.aClass:active{
color:green;
}
#aID:link,#aID:visited,#aID:hover,#aID:active{
color:blue;
}
a#aID:link,a#aID:visited,a#aID:hover,a#aID:active{
color:coral;
}
/**下面这个样式和本文主题没有关系**/
p:first-letter {
font-size:260%;
float:left;
padding:0 2px 0 0;
font-family:"楷体_GB2312";
font-weight:bold;
color:#e00;
}
</style>
</head>
<body>
<div><a href="http://justinyoung.cnblogs.com/" class="aClass" id="aID">i'm a link.</a></div>
<p>
链接样式因为其特殊性(因为用到了伪类),所以表现比较丰富。而且因为链接的重要性,所以对于链接样式的控制就显的特别重要,但是因为样式优先级(也有叫做特殊性的)不同于其他编程语言,有其独特性,所以我感觉有必要将这些总结记录下来以备忘。
<br/>
工作中的一些小的总结,没有什么内容,只是自己脑子太笨,好在有个笔头。各位看官看看便是,便不要再嘲笑没有技术含量了。呵呵~
</p>
</body>
</html>
- 链接样式优先级(特殊性)小结
- css优先级(特殊性)
- 链接样式优先级
- CSS样式的特殊性(权重)
- 【CSS基础】css特殊性(优先级)
- 层、链接样式,css学习小结
- CSS样式优先级(权值)
- CSS优先级或特殊性 总结归纳
- CSS优先级或特殊性 总结归纳
- CSS中的优先级(有些翻译为特殊性
- 样式优先级
- 样式优先级
- 样式优先级
- css通过特殊性解决样式冲突
- 在样式表中使用特殊性
- 特殊性
- 浅谈CSS(样式)的优先级
- Html+Css基础之样式选择器和样式特殊性
- 基于.NET Framework 4.0的解决方案部署
- Testinside Microsoft 70-681考试内容集合
- ADO.NET Data Service中更新和查询一对多实体集的注意事项
- 别把暧昧当深情
- 如何在ADO.NET Data Service的解决方案中修改最大传输数据量
- 链接样式优先级(特殊性)小结
- Notes 中建立agent来, remove all documents.
- 暧昧关系
- 《实践与思考》书籍连载系列反馈区
- 《实践与思考》一书的概述和随笔连载说明
- 贴现改造总结
- 《实践与思考》系列连载(1)——引子
- 做高效的程序员一 -- 桌面篇 for win xp
- 《实践与思考》系列连载(2)—— 第一部分 我们走在.NET的实践征途上 序言