-1
仅通过CSS,是否可以从此HTML块中选择以下内容?或者选择一切,但我想选择什么?CSS和定义列表 - 选择特定定义描述
<dl>
<dt>dt one</dt>
<dd>dd one A</dt>
<dt>dt two</dt>
<dd>choose this dd and only this dd</dd>
<dd>dd two B</dd>
<dt>dt three</dt>
<dd>dd three A</dd>
</dl>
我应该限定此。在动态环境中,我想在任何时候选择一个邻居兄弟。所以,是的,在这种情况下,我可以使用第n个孩子选择器,但是如果这个变化不是这样的话。 – w0lf42
看看W3Schools链接,看起来你可以使用'dd〜dd',它应该选择每个DD之前的DD。 –