我有以下 html 代码。 是否可以操纵第二行元素以及如何操纵?
<style>
.span11 row{}
</style>
<div class="span11">
<div class="row"></div>
<div class="row"></div>
</div>
有效!
.row:nth-child(2){background:#000;}
最佳答案
2 种方式:
.row+.row{background:#000;}
.row:nth-child(2){background:#000;}
关于html - 使用 class = row 操作第二个 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19220549/