- top, bottom, center, left, right
- x% y%
- xpos ypos
例如:
background: url(mygirl.jpg) no-repeat left 20px;
背景圖會齊左並從y位置20px之處顯示一次背景圖。
background: url(mygirl.jpg) no-repeat 30% center;
則會在視窗寬30%之處上下居中顯示一次背景圖。
background: url(mygirl.jpg) no-repeat left 20px;
background: url(mygirl.jpg) no-repeat 30% center;
background: url(mynoteimg/faint.jpg) 100% top;
background: url(http://myblog/faint.jpg) no-repeat;
學習筆記, 心得分享