【发布时间】:2021-08-22 16:20:54
【问题描述】:
我正在尝试渲染渐变,它在 safari 和 chrome 上的颜色不同。如何使其相同? (左 - 铬,右 - Safari)。
https://codepen.io/max-frai/pen/XWMEQZJ
<div id="test"></div>
#test {
width: 400px;
height: 300px;
background: -webkit-linear-gradient(top, rgba(102,182,252,0) 0%,rgba(63,82,111,1) 100%);
background: linear-gradient(to bottom, rgba(102,182,252,0) 0%,rgba(63,82,111,1) 100%);
}
【问题讨论】:
标签: css google-chrome safari linear-gradients