1
A
回答
0
在該網站上,這條線
<div><img src="images/bottom_bg.jpg" width="100%" alt="" /></div>
改變
<div id="foobar"><img src="images/bottom_bg.jpg" width="100%" alt="" /></div>
,並添加以下CSS:
<style>
#foobar{ position: fixed; bottom: 0px; width: 100%; }
</style>
這應該做的工作。
9
在CSS:
background-attachment: fixed
http://www.w3schools.com/css/tryit.asp?filename=trycss_background-attachment
0
body{
background-image:url('lake.jpg'); /* or whatever */
background-attachment:fixed;
}
0
嘗試
background-attachment:fixed;
3
或者在速記:
body {background: url("/images/myimage.png") no-repeat fixed top left;}
相關問題
- 1. 使背景圖像固定
- 2. 背景減除與固定的背景
- 3. 固定背景的UIWebView
- 4. Twitter Bootstrap - 固定背景
- 5. 背景固定的PhoneGap
- 6. 固定背景的網頁
- 7. Javascript背景固定大小
- 8. HTML背景固定位置
- 9. 背景附件之間的區別:固定和位置:固定
- 10. 固定背景附件CSS/XHTML/jQuery
- 11. 背景附件滾動與固定
- 12. CSS背景位置固定到父母
- 13. CSS多個固定背景psuedo元素
- 14. 背景附件:固定?在iPhone上
- 15. 位置:固定有背景圖片?
- 16. Javascript隨機背景右上角固定
- 17. 滾動時固定背景結束
- 18. 帶固定圖像背景的UITableView
- 19. 固定寬度的div背景
- 20. 帶固定頁腳的Android viewpager背景
- 21. CSS背景附件固定 - 流出?
- 22. 爲網站創建固定背景
- 23. 固定在滾動背景欄:CSS
- 24. 固定拉伸背景圖片
- 25. CSS固定的背景圖像
- 26. 背景附件:固定在移動
- 27. 固定位置背景 - Chrome問題
- 28. 背景附件固定的替代品
- 29. iPhone UIScroll固定背景不工作
- 30. Textarea背景位置固定問題