有人能告诉我如何查找一个父元素下的非直接子元素的选择器吗?例如:
我想要通过纯CSS找到位于`.main`中间的`.text`,而不知道它们之间元素的数量。谢谢。
<body class="main">
<p class="text">Hello</p> <!-- don't select this one -->
<elem class="something">
<elem id="link">
<elem class="otherclass">
<p class="text">Hello</p> <!-- but this one -->
</elem>
</elem>
</elem>
</body>
我想要通过纯CSS找到位于`.main`中间的`.text`,而不知道它们之间元素的数量。谢谢。
.main .text{}
呢? - Manwal