html - 是什么导致我的按钮 ("View all content"中的文本在放大时显示为 3D

标签 html css

您可以在常规 View 和悬停时看到按钮文本下方的灰色阴影背景。我不确定是不是因为我使用的 Bootstrap 主题(相对较新+自学)。任何帮助表示赞赏!谢谢。

编码:https://codepen.io/minacosentino/pen/JyBQxM

.btn-primary {
  font-family: "Montserrat", arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .25rem;
  text-indent: .75rem;
  margin-bottom: 5rem;
  background: #4fd2c2;
  border-color: #4fd2c2;
  color: #fff;
  border: none;
  border-radius: 3rem;
  height: 30px;
  padding: 2rem 4rem;
  font-size: 1.25rem;
  line-height: 0rem;  
  }

  .btn-primary:hover {
    background: #ffffff;
    color: #4fd2c2;
    border: 2px solid #4fd2c2;
  }

enter image description here

最佳答案

在 .btn-primary 上试试这个

text-shadow:none;

https://codepen.io/anon/pen/PKVByp

关于html - 是什么导致我的按钮 ("View all content"中的文本在放大时显示为 3D,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46008874/

相关文章:

html - 如何在 HTML 中创建选项卡式 View ?

html - 我应该使用 <table> 还是 <ul>?

css - 以 % 为单位设置最大宽度样式的图像由 Firefox 以 px 为单位输出。适用于 Chrome

html - 如何使 Bootstrap 列在一行中具有相同的高度?

javascript - PHP minifiying HTML - 跳过阅读 JavaScript 代码和 CSS?

javascript - css 过渡不顺利发射

css - 为什么我的列不能正确对齐?

javascript - 在 mouseenter 上旋转 div 元素并在 mouseleave 上停止旋转

html - 了解错误 "Element legend not allowed as child of element div in this context."

css - 删除圆形面包屑的左右背景颜色