请问如何让内容增多时,滚动条正动滚到最下面 如何做到呢???用dom添加内容,内容多的时候会出现滚动条,但滚动条一直在上面,我想做到的效果是内容增多时,滚动条正动移到最下面,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个功能其实不难的,有个与ScollTop的方法,也有相对的,改改就好了! IE8 和 FF3.6.8 测试通过!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name="author" content="[email protected]" /> <meta name="keywords" content="" /> <meta name="description" content="" /></head><body><div style="height:800px;width:800px;background-color:red;"></div><script type="text/javascript"><!--window.scroll(0, document.documentElement.scrollHeight);alert(document.documentElement.scrollHeight);alert(document.documentElement.scrollTop);//--></script></body></html>Web 开发常用手册DHTML 参考手册http://download.csdn.net/source/308913JScript 语言参考http://download.csdn.net/source/308916CCS 样式表中文手册http://download.csdn.net/source/304124 设置document.documentElement.scrollTop的值即可 大神 来救~~ 关于<@p.table标签的问题 急 !!!!!!!!!! 一个文章列表页(里面有10编文章),一个文章内容页(底部可以留言) TextBox 长度的问题 请教 pasteHTML的问题 怎么都解决不了。在JSCRIPT中,正则表达式如何检验格化了的数字:“###,###,##0” 我能不能这样写? 初学者对于“删除”操作的疑问 为什么本论坛中搜索的帖子打不开? getContentPane问题 求教 求助,关于JS获取客户端IP地址后如何将其储存在服务器端数据库的问题
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="[email protected]" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div style="height:800px;width:800px;background-color:red;"></div>
<script type="text/javascript">
<!--
window.scroll(0, document.documentElement.scrollHeight);
alert(document.documentElement.scrollHeight);
alert(document.documentElement.scrollTop);
//-->
</script>
</body>
</html>
Web 开发常用手册DHTML 参考手册
http://download.csdn.net/source/308913JScript 语言参考
http://download.csdn.net/source/308916CCS 样式表中文手册
http://download.csdn.net/source/304124