有了WordPress属性,您就不能拥有相同的选择器,所以我需要使用类似类型的nth,但是它不能工作,所以我显然没有正确的选择器。这是html
<div class="wp-block-blocks">
<section>
<div class="container">
<div class="row text-center">
<div class="col-md-4">
<h5 class="display-5">55K</h5>
<p>asfasf</p>
</div>
<div class="col-md-4">
<h5 class="display-5">55K</h5>
<p>afsasf</p>
</div>
<div class="col-md-4">
<h5 class="display-5">55K</h5>
<p>safasffas</p>
</div>
</div>
</div>
</section>
</div>我试图设置的选择器是针对每个h5和p标记的。
对于h5,我已经试过了,但没有joy
.col-md-4 h5:nth-of-type(1)
.col-md-4 h5:nth-of-type(2)
.col-md-4 h5:nth-of-type(3)发布于 2021-12-21 17:24:12
你可以这样做:
.col-md-4:nth-child(1) h5https://stackoverflow.com/questions/70439300
复制相似问题