-1
我設置下面的默認樣式我的主網站鏈接的所有鏈接:添加:焦點大綱
a {
color: #000;
text-decoration: none;
}
a:visited,
a:focus,
a:active {
color: #000;
}
a:hover {
color: red;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
當造型等環節,我已經按照相同的模式,例如:
.button {
color: #fff;
background: #000;
}
.button:visited,
.button:focus,
.button:active {
color: #fff;
}
.button:hover {
color: #000;
background: #fff;
}
是否有必要在其他鏈接中包含焦點輪廓樣式還是瀏覽器會回到我的默認值?我知道有正確的焦點風格將有助於輔助功能。
非常好,謝謝你澄清。 – Squideyes