为什么当我单击按钮时按钮更改为框架颜色?

问题描述 投票:0回答:1

我创建了一个按钮,但是有问题。当我单击按钮时,框架颜色发生变化,我不明白为什么。我在点击前后都会上传图片。

之前:enter image description here

之后:enter image description here

按钮CSS:

.aproveBtn
  background: $add-button
  background-image: -webkit-linear-gradient(top, $add-button, $add-button)
  background-image: -moz-linear-gradient(top, $add-button, $add-button)
  background-image: -ms-linear-gradient(top, $add-button, $add-button)
  background-image: -o-linear-gradient(top, $add-button, $add-button)
  background-image: linear-gradient(to bottom, $add-button, $add-button)
  -webkit-border-radius: 4px
  -moz-border-radius: 4px
  border-radius: 4px
  font-family: Arial
  color: #ffffff
  @include font-size(20)
  padding: 0px 35px 2px 36px
  text-decoration: none

谢谢

css
1个回答
0
投票

如果是“按钮”标签,只需阅读一下大纲,就可以将其设置为无:outline: none;还可以阅读有关CSS中的焦点和活动伪类的信息。希望它能解决您的问题。

© www.soinside.com 2019 - 2024. All rights reserved.