我的按钮有这些 CSS 定义:
nav ul li a {
display: block;
margin-right: 0px;
font-size: 19px;
line-height: 40px;
text-align: center;
text-decoration: none;
color: white;
/* border:1px solid red; */
}
在 Internet Explorer 10 中,单击时它会变成灰色背景。为什么?
最佳答案
只需添加一个:active { background: none; } 到你的样式表。
关于css - 单击时的灰色背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13609468/