我有HTML这样的: <tag1>
<div class="c"> // need to select that
<tag1>
<div class="c"> // do not need that
</div>
</tag1>
</div>
</tag1>
我要选择的第一tag1内div应用CSS规则 我试图tag1:first-of-type
我很绝望。 试图在通过css悬停的图像上实现一个简单的颜色更改,我无法找到使用我的选择器的正确方法,但我不清楚它为什么不起作用。 (我知道了其他页面使用的网站上) 以下是我对CSS: /* NO ROLLOVER > IMG is GRAY */
#post-1263 > div > div > div > div > div > div:nth-child(1) > div > di