css3由父元素找子元素

版权声明:不要盗版哦 https://blog.csdn.net/weixin_38313970/article/details/81027529

css3由父元素找子元素

<body>

<div id=”one“>

<div></div>

<div></div>

<div></div>

</div>

</body>

<style>

#one div:nth-child(1)

</style>


猜你喜欢

转载自blog.csdn.net/weixin_38313970/article/details/81027529