You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修复Safari浏览器中的CSS样式兼容问题?

Safari浏览器CSS样式异常问题

CSS样式在Safari浏览器中显示异常,但在其他浏览器中均可正常渲染。以下是相关代码及截图:

电话链接样式

.link-g
  width: 100%
  color: $white
  font-family: Inter
  font-size: $m16
  font-style: normal
  font-weight: 400
  line-height: 146%
  text-decoration: none
  margin-top: 0

含电话的页脚代码

<div className="contact-group">
        <FontAwesomeIcon className="icon" icon={faPhone} />
        <a className="link-g" href="tel:+1 (312) 972-3890">
          +1 (312) 972-3890
        </a>
      </div>

地址链接代码

<div className="contact-link-container mt32">
                  <FontAwesomeIcon icon={faLocationDot} className="fa-icon" />
                  <a href="" className="contact-link">
                    5516 N Major Ave Chicago IL 60630{" "}
                  </a>
                </div>

地址链接样式

.contact-link
  color: $orange
  text-align: right
  font-family: Inter
  font-size: clamp(10px,1.0416vw,40px)
  font-style: normal
  font-weight: 400
  line-height: normal
  margin-left: $m8

样式异常截图

内容的提问来源于stack exchange,提问作者Ruslan Makhmatov

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 21:14:59