我有以下css:
background: -moz-linear-gradient(center top , rgba(255, 255, 255, 0.1) 0px, rgba(0, 0, 0, 0.1) 100%) repeat scroll 0 0 #66BAC0;
background: -webkit-linear-gradient(center top , rgba(255, 255, 255, 0.1) 0px, rgba(0, 0, 0, 0.1) 100%) repeat scroll 0 0 #66BAC0;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66BAC0', endColorstr='#66BAC0');
-moz-linear-gradient出现在windows和mac上的firefox上。 -webkit一个不适用于mac和windows。我不确定我做错了什么。我是新手。
有人可以帮我弄明白为什么它没有显示出来吗?
答案 0 :(得分:2)
试试这个:
background: -moz-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px, rgba(0,0,0,0.1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0px,rgba(255,255,255,0.1)), color-stop(100%,rgba(0,0,0,0.1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px,rgba(0,0,0,0.1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px,rgba(0,0,0,0.1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px,rgba(0,0,0,0.1) 100%); /* IE10+ */
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0px,rgba(0,0,0,0.1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1affffff', endColorstr='#1a000000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
创建