代码编辑器:
x
1
2
<meta charset="utf-8">
3
<link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/>
4
<style>
5
p:nth-last-child(2)
6
{
7
background:#ff0000;
8
}
9
</style>
10
11
<p>The first paragraph.</p>
12
<p>The second paragraph.</p>
13
<p>The third paragraph.</p>
14
<p>The fourth paragraph.</p>
15
16
<p><b>注意:</b> Internet Explorer 8 以及更早版本的浏览器不支持:nth-last-child()选择器.</p>
17
18
<footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>