【发布时间】:2018-09-01 20:55:10
【问题描述】:
我正在尝试将 scale 动画应用于引导按钮,但它的文本模糊。我尝试了here 发布的每个答案。我该如何解决?
这是代码(它在 sn-p 中显示的模糊度比在我的项目中要少):
button.btn-outline-dark{
margin-top: 6%;
width:30%;
height: 17%;
color: black;
}
button.btn-outline-dark:hover{
transition: all .2s ease-in-out;
transform: scale(1.1);
-webkit-font-smoothing: subpixel-antialiased;
backface-visibility: hidden;
-webkit-filter: blur(0);
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<button type="button" class="btn btn-outline-dark" data-toggle="modal" data-target="#exampleModal">
Blurry Text
</button>
【问题讨论】:
-
总有一个选项可以代替缩放手动更改悬停时的按钮大小和字体大小。也许不理想,但文字肯定不会模糊。
标签: html twitter-bootstrap css bootstrap-4