请教一下 JavaScript 如何让div随着滚动条而滚动

2025-01-07 21:57:37
推荐回答(4个)
回答1:




New Document










asdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsdasdfafsd


asdfafsd


asdfafsd




回答2:

必须用JAVASCRIPT来实现,单靠CSS是实现不了的。网上代码很多,自己可以查下。

回答3:

http://bbs.blueidea.com/viewthread.php?tid=2004837
此帖5楼的代码,我测试IE6和FF均通过,纯CSS无JS。

回答4:

要以单靠CSS position就可以实现的!