[英]Getting background image fixed after scrolling
I need my website background became fixed after background image ends. 我需要我的网站背景在背景图像结束后修复。 Here is example: http://jsfiddle.net/cEywp/1/
这是一个例子: http : //jsfiddle.net/cEywp/1/
Any suggestions? 有什么建议么? Thanks.
谢谢。
Little explanation: I have header and after a 1280x1024 background image, marked as 100% width and height. 小解释:我有标题并在1280x1024背景图像后,标记为100%宽度和高度。 I need when i scrolling down (when image ends) that image became fixed, not absolute anymore.
当我向下滚动(当图像结束时)我需要图像变得固定,而不是绝对。
EDIT 编辑
I did it with scrollToFixed, just added to image. 我用scrollToFixed做了,只是添加到图像。 ;)
;)
you can write position:fixed instead of position:absolute . 你可以写位置:固定而不是位置:绝对 。
Check this http://jsfiddle.net/cEywp/4/ 检查这个http://jsfiddle.net/cEywp/4/
It's better if you give image in background
instead of IMG.
如果你在
background
而不是IMG.
提供图像会更好IMG.
Check this http://jsfiddle.net/cEywp/5/ 检查这个http://jsfiddle.net/cEywp/5/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.