如何将此功能从webkit转换为moz?
background-color: #fff;
background-image:
-webkit-linear-gradient(0deg, transparent 79px, #ABCED4 79px, #ABCED4 81px, transparent 81px),
-webkit-linear-gradient(#EEE .05em, transparent .05em);
答案 0 :(得分:4)
支持大多数浏览器...
background: -moz-linear-gradient(top, rgba(171,206,212,1) 79px, rgba(0,0,0,0) 81px); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(79px,rgba(171,206,212,1)), color-stop(81px,rgba(0,0,0,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* IE10+ */
background: linear-gradient(top, rgba(171,206,212,1) 79px,rgba(0,0,0,0) 81px); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#abced4', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
显然,第一行是moz
供应商前缀。