Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.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
Css 仅在opera浏览器中出现菜单背景色问题_Css_Magento - Fatal编程技术网

Css 仅在opera浏览器中出现菜单背景色问题

Css 仅在opera浏览器中出现菜单背景色问题,css,magento,Css,Magento,我已经为菜单设置了背景,它在除opera之外的所有浏览器中都运行良好。我的css与此相同,如下所示: #nav { background: -moz-linear-gradient(center top , #2B0624, #CC0099) repeat scroll 0 0 transparent; border-radius: 10px 10px 0 0; height: 51px; margin-top: 2px; } 有人能帮我吗:Golu使用-o-l

我已经为菜单设置了背景,它在除opera之外的所有浏览器中都运行良好。我的css与此相同,如下所示:

#nav {
    background: -moz-linear-gradient(center top , #2B0624, #CC0099) repeat scroll 0 0 transparent;
    border-radius: 10px 10px 0 0;
    height: 51px;
    margin-top: 2px;
}

有人能帮我吗:

Golu使用-o-linear-gradient并享受。

-moz-linear gradient是Mozilla独有的风格属性。请看一下。。。这将支持所有常见的浏览器,这对我很有用@Atrox111@XeeMezAsHu这是歌剧的-o-,而不是-op-。此外,最新的Opera支持没有前缀的版本。线性的-gradient@MrLister对不起,我弄错了,我在-moz-☺我很早就这么做了