嗨我想定位和修改<label>
标签只有当input[type=radio]
旁边,没有任何其他cirscuntances。CSS3查询目标标签+输入[类型=“无线电”](指定节点)
我的代码如下所示:
<fieldset>
<legend>Some legend</legend>
<p>Some explanation</p>
<label>
<input type="radio" name="#{name}" value="#{value}" />
</label>
</fieldset>
我tryied与fieldset label:first-child+input[type=radio]{}
但doenst工作,如果有人可以帮助我将是真棒。
编辑: 我想是要能够样式只有标签没有标签的单选按钮INPUT标记,当发现<label><input type="radio"></label>
结构这种风格只适用。
你'label'是不是* *旁边你'input'。你的'input'是你的'label'里面的*。 –