CSS nth-of-type() 셀렉터
http://zetawiki.com/?curid=36982
by JM note
HTML
<style>
span:nth-of-type(1) { background: yellow; }
span:nth-of-type(2) { color: red; }
span:nth-of-type(3) { background: pink; }
</style>
<div>
<span>박스1</span>
<span>박스2</span>
<span>박스3</span>
<span>박스4</span>
</div>
<div>
<p>안녕</p>
<span>박스1</span>
<span>박스2</span>
<span>박스3</span>
<span>박스4</span>
</div>