码迷,mamicode.com
首页 >  
搜索关键字:nth-child、nth-of-type、伪类选择器    ( 1个结果
:nth-child和:nth-of-type之间的差异
对于:nth-child:先看下面的一段代码:<style> p:nth-child(1){ border:1pxsolid; } </style> <divclass="c1"> <divclass="c11"> <pclass="pp">1</p> <pclass="pp">2</p> </div> <pclass="pp">3</..
分类:其他好文   时间:2015-06-18 22:22:26    阅读次数:129
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!