Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Windows和MacOS不同显示线性渐变_Html_Css_Windows_Macos - Fatal编程技术网

Html Windows和MacOS不同显示线性渐变

Html Windows和MacOS不同显示线性渐变,html,css,windows,macos,Html,Css,Windows,Macos,这是一个背景渐变的代码 background: rgba(0,0,0,0) linear-gradient(rgb(245, 245, 245),rgba(0,0,0,0)) repeat scroll 0 0; Windows显示正常(chrome、ie、firefox) MacOS和iphone显示错误(safari、chrome) 使用十六进制颜色而不是rgb/rgba将解决此问题。相关的

这是一个背景渐变的代码

   background: rgba(0,0,0,0) linear-gradient(rgb(245, 245, 245),rgba(0,0,0,0)) 
   repeat scroll 0 0;
Windows显示正常(chrome、ie、firefox)

MacOS和iphone显示错误(safari、chrome)


使用十六进制颜色而不是rgb/rgba将解决此问题。

相关的