<button onclick="text1.scrollTop=text1.scrollHeight">滚动</button><br> cache the xmlhttprequest instance, if you want to use setinterval or settimeout.
                            
                            
                                分类:
Web程序   时间:
2016-03-13 23:57:09   
                                阅读次数:
435
                             
                    
                        
                            
                            
                                HTML:scrollLeft,scrollWidth,clientWidth,offsetWidth到底指的哪到哪的距离之完全详解scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离scrollTop:设置或获取位于
                            
                            
                                分类:
其他好文   时间:
2016-03-10 14:47:29   
                                阅读次数:
192
                             
                    
                        
                            
                            
                                /***设置聊天框中的滚动条始终在底部*/functionsetScrollForBottom(id){varheight=document.getElementById(id).scrollHeight;$("#"+id).scrollTop(height);}
                            
                            
                                分类:
Web程序   时间:
2016-03-08 10:53:33   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                scrollTop为滚动条在Y轴上的滚动距离。clientHeight为内容可视区域的高度。scrollHeight为内容可视区域的高度加上溢出(滚动)的距离 $(window).scroll(function(){ var scrollTop = $(this).scrollTop(); var
                            
                            
                                分类:
Web程序   时间:
2016-02-16 11:40:25   
                                阅读次数:
155
                             
                    
                        
                            
                            
                                document.body.clientHeight: IE、chrome、firefox: body对象高度(height+padding),body的默认高度为0 document.body.clientWidth: IE、chrome、firefox body对象的宽度(width+paddi
                            
                            
                                分类:
编程语言   时间:
2016-01-30 02:15:31   
                                阅读次数:
299
                             
                    
                        
                            
                            
                                输入框景背景透明:鼠标划过输入框,输入框背景色变色:输入字时输入框边框闪烁(边框为小方型):输入字时输入框边框闪烁(边框为虚线):自动横向廷伸的输入框:自动向下廷伸的文本框:80) this.style.posHeight=this.scrollHeight+5">输入几个回车试试只有下划线的文本框...
                            
                            
                                分类:
其他好文   时间:
2016-01-26 21:50:55   
                                阅读次数:
180
                             
                    
                        
                            
                            
                                $(window).scroll(function(){var scrollTop=$(this).scrollTop();var scrollHeight=$(document).height();var windowHeight=$(this).height();if(scrollTop+win...
                            
                            
                                分类:
Web程序   时间:
2016-01-15 14:28:43   
                                阅读次数:
138
                             
                    
                        
                            
                            
                                DTD已声明IEdocument.documentElement.scrollHeight 浏览器所有内容高度 ,document.body.scrollHeight 浏览器所有内容高度document.documentElement.scrollTop 浏览器滚动部分高度,document.bod...
                            
                            
                                分类:
其他好文   时间:
2016-01-14 22:10:58   
                                阅读次数:
156
                             
                    
                        
                            
                            
                                兼容IE6浏览器的最大高度和最小高度css代码:IE6浏览器是不支持最大高度和最小高度属性的,下面就通过兼容性措施实现此功能。一.最大高度效果:.max_height{ max-height:400px; _height:expression(this.scrollHeight > 400 ? .....
                            
                            
                                分类:
Web程序   时间:
2016-01-10 18:38:59   
                                阅读次数:
182
                             
                    
                        
                            
                            
                                兼容IE6浏览器的最大高度和最小高度css代码:IE6浏览器是不支持最大高度和最小高度属性的,下面就通过兼容性措施实现此功能。一.最大高度效果:.max_height{ max-height:400px; _height:expression(this.scrollHeight > 400 ? .....
                            
                            
                                分类:
Web程序   时间:
2016-01-09 11:04:21   
                                阅读次数:
150