background:url() 0 0 no-repeat; 中的0 0是什么意思?
background:url() 0 0 no-repeat; 中的0 0是什么意思?
日期:2017-10-01 23:08:55 人气:2
题目为background的简写形式之一
其中0 0代表background-position的值,表示背景图的定位,前后两个分别是横向定位和纵向定位。
左上角是 0 0。单位是像素 (0px 0px) 或任何其他的 CSS 单位。
如果您仅规定了一个值,另一个值将是50%。
扩展:
url为background-image的值,表示背景图片的URL
no-repeat为background-repeat的值,可使用的值有repeat、no-repeat、repeat-x、repeat-y