悬停时,我试图放大按钮。我尝试更改颜色以查看是否正确定位了它,并且该方法可行。 但是转换没有。我正在使用引导程序
.btn {
display: inline-block;
padding-top: 12px;
padding-bottom: 12px;
padding-left: 30px;
padding-right: 30px;
border-radius: 2.25rem;
}
.btn-primary {
display: inline-block;
color: #ffffff;
background: #EB71A4;
background-image: -webkit-linear-gradient(top, #EB71A4, #EB4481);
background-image: -moz-linear-gradient(top, #EB71A4, #EB4481);
background-image: -ms-linear-gradient(top, #EB71A4, #EB4481);
background-image: -o-linear-gradient(top, #EB71A4, #EB4481);
background-image: linear-gradient(to bottom, #EB71A4, #EB4481);
}
.btn:hover {
display: inline-block;
color: green !important;
transform: scale(2.5) !important;
}
<a href="#kontakt" class="btn btn-primary animate-pop-in shadow">Termin vereinbaren</a>