<div class="anchorTR"> <div>div1</div> <div>div2</div> <div>div3</div> </div> <style> .anchorTR div:nth-of-type(3){ color: #f00; } </style>这样可以选择某一个元素,比如第3个,然后设置为display: none;就是隐藏它。
这样可以选择某一个元素,比如第3个,然后设置为

display: none;
就是隐藏它。