nth-of-type(n)选择器
来源:互联网 发布:sas怎么导入excel数据 编辑:程序博客网 时间:2024/05/21 17:50
任务
快来练习一下吧!在右边的CSS的编辑器的第1行、第7行及第13行,输入正确的代码,将容器“div.wrapper”中的偶数段落和奇数Div背景设置为橙色。
<!DOCTYPEwww.dztcsd.com html>
<html>
<head>
<meta charset="utf-8">
<title>属性选择器</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<div>我是一个Div元素</div>
<p>我是一个段落元素</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
<div>我是一个Div元素</div>
<p>我是一个段落</p>
</div>
</body>
</html>
0 0
- nth-of-type(n)选择器
- 【CSS3】---first-of-type选择器+nth-of-type(n)选择器
- 【CSS3】nth-of-type(n)选择器
- 【CSS3】nth-last-of-type(n)选择器
- nth-of-type选择器
- 【CSS3】---last-of-type选择器+nth-last-of-type(n)选择器
- css 伪类选择器 :nth-child(n) 与:nth-of-type(n)的区别
- css选择器 nth-child(n)和nth-of-type(n)对比
- nth-last-of-type选择器
- 伪类选择器之结构选择器::noth-child(n)/:nth-of-type(n)
- CSS3选择器之nth-of-type
- css选择器中:first-child与:first-of-type的区别///CSS3伪类nth-of-type(n)用法详解
- :nth-child(n)与:nth-of-type(n)的区别
- nth-type-of nth-child(n) eq(n)区别
- nth-child(n)和nth-of-type(n)的区分
- :nth-child(n)与:nth-of-type(n)的区别
- css nth-child(n)和nth-of-type(n)区别
- CSS :nth-child与:nth-of-type选择器
- TableLayout指示器修改标签字体
- 网络TCP建立连接为什么需要三次握手而结束要四次
- hdu5890 bitset 优化dp
- 时间复杂性为O (n2),是什么意思
- EndNote的插件不在word中显示以及在word 2010中采用EndNote X7插入引用的方法
- nth-of-type(n)选择器
- BZOJ2085 [Poi2010]Hamsters
- 从零开始学习音视频编程技术(二) 音频格式讲解
- Oracle 密码文件
- java基础
- GDB 常用命令
- Hierarchy Viewer Setup
- Codeforces Round #372 (Div. 2) A.B.C
- sqlite3实例