设置背景图像很清楚,但如何设置背景图像的位置?
答案 0 :(得分:1)
background-position属性,例如
background-position:top right;
答案 1 :(得分:1)
如果你想要一个无重复的背景图像,右边10px,顶部20px
{ backgroud: url(path to image) no-repeat 10px 20px; }
您也可以使用该位置的负值,例如。 -10px将其向左移动10px
答案 2 :(得分:0)
或者您可以使用速记来同时设置所有内容!
background:#ffffff url('/images/background.jpg') top right no-repeat;