嗨我想定位和修改<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'裏面的*。 –