【问题标题】:Link style not showing on Safari链接样式未在 Safari 上显示
【发布时间】:2022-01-15 17:49:09
【问题描述】:

我有一个“按钮”,基本上是一个链接。它以我想要的方式正确设置并在 Chrome 中显示如下:Screenshot

但在 Safari 中,它只显示文本,没有其他内容。

我用过的代码:

.button-see-more {
  border: none;
  border-radius: 5px;
  background-color: #e4e4e4;
  font-size: 0.8em;
  padding: 0px 18px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(1, 0, 1, 0.13) 0s;
}

.button-see-more:hover {
  transition: 0.2s;
  background-color: #000000;
  color: #FFFFFF;
}
 <a href="/project-inadequat.html" class="button-see-more"><p>See More</p></a>

我很确定我搞砸了,如果知道是什么,我会很感激。

【问题讨论】:

    标签: html css button hyperlink safari


    【解决方案1】:

    我已经开始使用您提供的代码来制作this test/preview site

    它似乎没有问题,正如this answer 所说;这可能只是一个缓存问题。清除浏览器缓存并重新打开 Safari,然后再次查看该网站。

    (目前我正在使用 Safari,样式链接显示正常)

    【讨论】:

      猜你喜欢
      • 2012-07-31
      • 2010-12-03
      • 2021-10-23
      • 2012-12-30
      • 2021-06-12
      • 1970-01-01
      • 1970-01-01
      • 2020-01-13
      • 2011-02-23
      相关资源
      最近更新 更多