設置背景圖像很清晰,但我如何設置背景圖像的位置?我如何定義背景圖像在CSS中的位置?
0
A
回答
1
該background-position屬性,例如,
background-position:top right;
0
或者您可以使用速記同時設置所有內容!
background:#ffffff url('/images/background.jpg') top right no-repeat;
1
,如果你想從頂部
{ backgroud: url(path to image) no-repeat 10px 20px; }
沒有重複定位10px的右邊,20px的背景圖像,你可以使用負值的位置也是如此,例如。 -10px將其向左移動10px
相關問題
- 1. css背景圖像定位(負位置?)
- 2. CSS背景圖像位置
- 3. CSS在背景中的特定位置定位圖像
- 4. css圖像背景定位
- 5. CSS - 背景圖像定位
- 6. CSS背景圖像定位
- 7. CSS背景圖像。在文字位置
- 8. 如何在我的CSS漸變背景圖像上放置背景圖像
- 9. 背景大小與css sprite圖像中的背景位置
- 10. 沒有背景圖像的Css定位
- 11. Webstorm Meteor CSS背景圖像位置
- 12. Css背景圖像位置動畫
- 13. 背景圖像位置和CSS轉換
- 14. 如何更改CSS中的圖像背景位置?
- 15. CSS類背景圖像水平定位?
- 16. 用CSS定位背景圖像
- 17. css背景位置 - PNG圖像不顯示爲在css中定位
- 18. 重置CSS背景圖像
- 19. css中的背景位置
- 20. jQuery背景圖像位置
- 21. WKInterfaceController背景圖像位置
- 22. 位置圖像到背景
- 23. 無法將圖像定位在背景圖像上(Html,Bootstrap,CSS)
- 24. 固定CSS背景圖像
- 25. CSS背景位置
- 26. 如何在背景圖像上放置一個css圖像庫
- 27. CSS - 背景位置在Firefox
- 28. CSS3背景圖像定位
- 29. css中的圖像背景
- 30. 背景圖像中的位置文本