[英]-moz-linear-gradient
Could someone explain to me what this portion of code means? 有人可以向我解释这部分代码是什么意思吗?
repeat scroll 0 0 #F6F6F6;
I have googled a lot and only found syntax to this part 我在Google上搜索了很多,只发现了这部分的语法
-moz-linear-gradient(center top , #FFFFFF, #EFEFEF)
My code: 我的代码:
background: -moz-linear-gradient(center top , #FFFFFF, #EFEFEF) repeat scroll 0 0 #F6F6F6;
Thanks! 谢谢!
These are actually part of the background
CSS property , not -moz-linear-gradient
. 这些实际上是
background
CSS属性的一部分 ,而不是-moz-linear-gradient
。 Have a look at that link, it should explain. 看看那个链接,它应该解释。
Basically: 基本上:
repeat
: The background repeats! repeat
:背景重复! scroll
: When the page scrolls, the background scrolls too scroll
:页面滚动时,背景也会滚动 0 0
: Says, "start the background from this point in the image". 0 0
:说,“从图像的这一点开始背景”。 All the extra stuff is probably unneccessary - they seem to be the same as the defaults. 所有多余的东西可能都是不必要的-它们似乎与默认值相同。
background: <image> <repetition> [scroll] <pos-x> <pos-y> <color>;
Those are additional options to the background:
css shorthand. 这些是
background:
其他选项background:
css速记。
The repeat
repeats the image (although, -moz-linear-gradient doesn't support repeating). repeat
重复图像(尽管-moz-linear-gradient不支持重复)。
scroll
(as opposed to fixed
) allows the background to "scroll" scroll
(与fixed
相对)可让背景“滚动”
0 0
are x and y coords for the placement of the top left corner of the image. 0 0
是图像左上角的x和y坐标。
#F6F6F6 is a background color
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.