就是能固定在页面的某个位置,不随页面滚动而滚动的那种!
回复讨论(解决方案) ie6 position:fixedie6 position:fixed
ie6 position:fixed
或者js来做
参考下
我有个现成的写法,从 discuz 论坛程序里面copy的,具体你可以看看: http://www.bacysoft.cn/thread-56-1-1.html
用position:fixed; calmcrime的方法行
calmcrime已经回答的很好了,只是js方式这里需要加上原来的高度
window.onscroll = function()
{
$('test').style.top = 原高度+ (document.documentelement.scrolltop || document.body.scrolltop) + 'px'
}
学习了。 html code
nbsp;html public -//w3c//dtd xhtml 1.0 transitional//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd>
增加点人气~~~
多谢1楼,2楼...
用css多好。。。
过来结贴,哈哈哈...
