gpt4 book ai didi

css - 背景渐变未在 Safari 和 Firefox 上加载

转载 作者:行者123 更新时间:2023-11-28 00:25:06 24 4
gpt4 key购买 nike

尝试使背景渐变在 Safari 和 Firefox 上工作。在 Chrome 上运行完美:

.gq_s_background_gradient:after {
content: "";
display: block;
height: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
background-image: linear-gradient(360deg,rgba(43,135,218,0.3) 0%,#161616 85%);
animation-duration: 2500ms;
animation-delay: 700ms;
opacity: 0;
-webkit-animation-name: et_pb_fade;
animation-name: et_pb_fade;
-webkit-animation-fill-mode: both !important;
animation-fill-mode: both !important;}

最佳答案

为什么使用 opacity:0 ?和

为所有浏览器设置背景:

background-image:

-webkit-linear-gradient(360deg,rgba(43,135,218,0.3) 0%,#161616 85%);

background-image:-moz-linear-gradient(360deg,rgba(43,135,218,0.3) 0%,#161616 85%);

background-image:-o-linear-gradient(360deg,rgba(43,135,218,0.3) 0%,#161616 85%);

background-image: linear-gradient(360deg,rgba(43,135,218,0.3) 0%,#161616 85%);

关于css - 背景渐变未在 Safari 和 Firefox 上加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54666419/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com