html css关联选择器和组合选择器
来源:互联网 发布:sql 添加自增列 编辑:程序博客网 时间:2024/06/05 06:43
<!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">
div{
background-color:#33FF00;
color:#000000;
}
/*关联选择器,选择器中的选择器*/
div b{
background-color:#000000;
color:#33FF00;
}
/*组合选择器*/
p,span b{
background-color:#3300FF;
color:#FFFFFF;
}
</style>
</head>
<body>
<div>封<b>装</b>行</div>
<span>行<b>内封</b>装</span> <span>行内封装</span>
<p>段落中的隐藏的第一桶金</p>
<p>段落</p>
</body>
</html>
<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">
div{
background-color:#33FF00;
color:#000000;
}
/*关联选择器,选择器中的选择器*/
div b{
background-color:#000000;
color:#33FF00;
}
/*组合选择器*/
p,span b{
background-color:#3300FF;
color:#FFFFFF;
}
</style>
</head>
<body>
<div>封<b>装</b>行</div>
<span>行<b>内封</b>装</span> <span>行内封装</span>
<p>段落中的隐藏的第一桶金</p>
<p>段落</p>
</body>
</html>
阅读全文
0 0
- html css关联选择器和组合选择器
- CSS 关联选择器和组合选择器
- 30-CSS-04-CSS(关联选择器&组合选择器)
- 关联选择器和组合选择器,伪元素选择器
- CSS入门系列(三)关联选择器&组合选择器
- CSS选择器之【组合选择器】
- css组合选择器、伪选择器
- CSS—组合选择器
- css-组合选择器
- CSS:CSS选择器之【组合选择器】
- (2)选择器:class选择器、id选择器、关联选择器、组合选择器、伪元素选择器
- css选择器标签选择器和id选择器
- Html+CSS中子选择器
- HTML/CSS选择器
- css选择器和jquery选择器
- jquery选择器和css选择器
- Html+CSS CSS中的选择器
- css各种选择器,元素标签选择器,类选择器,id选择器,选择器的组合
- 242. Valid Anagram
- PHPRedis入门笔记
- lua-7 io/异常/调试/垃圾回收
- Hibernate对象关系映射常用标签(二)
- 什么是事件流?
- html css关联选择器和组合选择器
- 备注
- OSGI 初学心得整理
- 虚拟机安装和管理
- mysql和mysqli区别
- 10003---位(bit)、字节(Byte)、MB(兆位)之间的换算关系
- HDU 6047 Maximum Sequence【贪心】
- Python中判断文件是否存在的方法有哪些?
- 12864学习总结