【发布时间】: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