[英]css background invalid property value for color
hi im pretty new to css and im having a probleem with a color value being wrong 您好,我是CSS的新手,而且我遇到了颜色值错误的问题
article{
float: left;
width: 540px;
height: 500px;
margin: 10px;
overflow: scroll;
padding: 0 0 0 0;
border: 1px solid #ddd;
background: -webkit-gradient(linear, left top, left
bottom, from(#94bae7), to(#FFF);
background: -o-gradient(#94BAE7 , #FFF);
background: -moz-linear-gradient(top, #94BAE7 0%, #FFF 100%);
}
This should work, btw: padding: 0; 这应该起作用,顺便说一句:padding:0; is the same as padding: 0 0 0 0;
与padding相同:0 0 0 0;
article {
background: -webkit-linear-gradient(left top, #94bae7 , #FFF);
background: -o-linear-gradient(bottom right, #94bae7, #FFF);
background: -moz-linear-gradient(bottom right, #94bae7, #FFF);
background: linear-gradient(to bottom right, #94bae7 , #FFF);
}
one small ) - close bracket will cause you that problem in line background: -webkit-gradient. 一个小)-括号将在行背景中引起该问题:-webkit-gradient。
background: -webkit-gradient(linear, left top, left bottom, from(#94bae7), to(#FFF));
After to(#FFF) use another close bracket. 在(#FFF)之后使用另一个右括号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.