如何將焦點輪廓添加到選中標記?例如,當按下鍵盤上的「標籤」時,用戶將看到每個標籤上的內容大綱。在選中標記時看到選中標記
td:focus {
outline: 3px dotted #000000;
outline-offset: 1px;
color: red;
}
<table>
<tr>
<td>
<label for="A1">
<span class="hidden">A-1</span>
<input type="checkbox" value="A1" name-"A1" id="A1">
<span aria-hidden="true"> </span>
</label>
</td>
</tr>
</table>
我不知道究竟我做錯了。
你想上的複選框,或者整個TD的輪廓?你的問題陳述了一件事'添加一個焦點輪廓到checkmarks',但你的代碼說另一個'td:focus'。 – csmckelvey
嗨,我想概述複選框,然後我可以選擇他們按空間。謝謝。 – user7293417