答案 0 :(得分:0)
G'天 - 这是按钮的焦点状态。您可以按如下方式设置样式:
button:focus {
outline: none;
/** Any additional styles go here **/
}
有关焦点的更多信息,请参阅CSS技巧中的这篇文章: https://css-tricks.com/almanac/selectors/f/focus/
答案 1 :(得分:0)
解决方案: -
button:focus {
/** Your CSS styles**/
}
button:active {
/** Your CSS styles**/
}
解释: -
The :focus selector is used to select the element that has focus.
Tip: The :focus selector is allowed on elements that accept keyboard events
or other user inputs.
Browser Support
Chrome Safari Firefox Opera IE Android iOS
4+ 3.1+ Any 9.6+ 8+ Any Any
The :active selector is used to select and style the active link.
A link becomes active when you click on it.
Tip: The :active selector can be used on all elements, not only links.
Browser Support
Chrome Safari Firefox Opera IE Android iOS
4+ 3.1+ Any 9.6+ 8+ Any Any
语法::
:focus {
css declarations;
}
:active {
css declarations;
}
注释和参考文献: -
w3schools Reference (Focus Selector) ::
答案 2 :(得分:0)