2007年8月29日
摘要: 阅读全文
posted @ 2007-08-29 17:22 挖豆 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: 1.设置窗口滚动条的位置: window.scroll(0,document.body.scrollHeight) 例,在打开网页时让页面处于页面底端 2.设置组件的滚动条的位置: 假设有个输入框,id为TextArea1 方法一: TextArea1.scrollTop=100;//滚动到输入框的100位置 方法二: document.getElementById("TextArea1").scrollTop=document.getElementById("TextArea1").scrollHeight; //滚动到输入框的底端 阅读全文
posted @ 2007-08-29 09:35 挖豆 阅读(8537) 评论(0) 推荐(0) 编辑