We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label
legend
fieldset
未處理前使用 label 模擬一組輸入元素的名稱,而非使用 legend標示,將造成:
/* 使用 label 標示 */ 標題 第 3 級 選項欄位 識別證件 選擇鈕 勾選 健保卡 選擇鈕 沒勾選 自然人憑證 選擇鈕 沒勾選 手機門號 補辦項目 核取方塊 沒勾選 健保卡 /* 使用 legend 標示 */ 標題 第 3 級 選項欄位 群組 識別證件 選擇鈕 勾選 健保卡 選擇鈕 沒勾選 自然人憑證 選擇鈕 沒勾選 手機門號 離開群組 群組 補辦項目 核取方塊 沒勾選 健保卡
label[for=ID]
html
guide/_includes/form/form-checkable.html
Lines 3 to 19 in c864a32
改使用 legend 標示
<fieldset class="fieldset"> <legend class="field-label">識別證件</legend> <div class="checkable-wrapper-v"> <div class="checkable-item"> <input type="radio" name="identification" id="v-healthid" value="healthid"> <label for="v-healthid">健保卡</label> </div> <div class="checkable-item"> <input type="radio" name="identification" id="v-moica" value="moica"> <label for="v-moica">自然人憑證</label> </div> <div class="checkable-item"> <input type="radio" name="identification" id="v-phone" value="phone"> <label for="v-phone">手機門號</label> </div> </div> </fieldset>
label[for]
The text was updated successfully, but these errors were encountered:
IK-Ngoo
No branches or pull requests
Root cause
未處理前使用
label
模擬一組輸入元素的名稱,而非使用legend
標示,將造成:label[for=ID]
會指向不存在的 id。References
html
guide/_includes/form/form-checkable.html
Lines 3 to 19 in c864a32
Possible solutions
改使用
legend
標示TODO
legend
標示輸入元件群組label
,label[for]
等條件的 selectorThe text was updated successfully, but these errors were encountered: