<a href='...'><input type='button'></a>
我有<a>
鏈接,當我點擊時,它會出現邊框。如何刪除左右移除css中的href鏈接邊框
邊框我已經嘗試style='border: none;'
,但它不工作
<a href='...'><input type='button'></a>
我有<a>
鏈接,當我點擊時,它會出現邊框。如何刪除左右移除css中的href鏈接邊框
邊框我已經嘗試style='border: none;'
,但它不工作
使用outline:none;
例如,
a:focus{outline:none;}
希望這有助於。
您的HTML無效。你**不能**在錨內有輸入。 – Quentin
你以後有什麼影響?如果您想在點擊按鈕時瀏覽用戶,則可以執行window.open或更改窗口位置。 – Smeegs