可能重複:
How to Remove dotted that appears when button is clicked如何在單選按鈕標籤處於活動狀態時刪除點狀邊框?
我有一些像這樣的代碼:
<input id="input-radio-principal" type="radio" name="chart-type" value="principal" checked="checked" />
<label for="input-radio-principal">Principal balances</label>
<input id="input-radio-payments" type="radio" name="chart-type" value="payments" />
<label for="input-radio-payments">Monthly payments</label>
每當我點擊一個單選按鈕,上有一個灰色的虛線邊框單選按鈕的標籤在IE9中。是否有可能刪除該邊界?
我見過很多關於如何從鏈接中刪除這些信息,但不是單選按鈕標籤。
工作,沒有測試過,但也許你可以使用JavaScript和調用模糊()每當一個單選按鈕被點擊?所以在jQuery中:'$(「input [type = radio]」)。click(function(){$(this).blur();});'或者如果它在標籤上而不是使用$(this)選擇標籤'$(「input [type = radio]」)。click(function(){$(this).next()。blur();});' – Horen
這是瀏覽器內置的輔助功能。您可能會發現一個黑客刪除它,但你可能不應該 –