选择器
来源:互联网 发布:方正字体检测软件 编辑:程序博客网 时间:2024/04/19 14:36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
/**
相邻元素选择器
*/
h1 +p {
background-color: red;
}
/*后代选择器*/
div h1{
background-color: blue;
}
/*选择指定的子元素*/
div >p{
font-size: 18pt;
}
</style>
</head>
<body>
<div>
<h1>AAA</h1>
<p>PPPPPPPPPPP</p><!--该元素背景色改变-->
<p>This is paragraph.</p>
<p>This is paragraph.</p>
</div>
</body>
</html>
0 0
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器
- 选择器(
- $选择器
- 选择器
- 选择器
- 选择器
- 【微信公众平台开发】微信幸运大转盘
- Linux系统编程规范(一)
- 黑马程序员--一个6岁孩子妈妈的黑马之路——感谢黑马!!!!!!!....
- 大数据的查找与排序
- 1、Hibernate配置过程(练习)
- 选择器
- http://tech.it168.com/a2011/0828/1238/000001238692_all.shtml
- Eclipse快捷键设置和代码提示设置
- Android4.0后新特性Textureview的使用
- 无线测试技术-利用httpclient实现自动化测试
- c++ float类型研究
- ios 获取控件相对屏幕的位置
- 黑马程序员--黑马程序员的入学流程真的“很黑”
- spring配置文件报错:the markup in the document preceding the root element must be well-formed