如何确定除法的scrollHeight使用CSS溢出:自动?
我试过了:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
最终,我试图创建一个聊天窗口,并始终在屏幕上显示当前消息的滚动条。
所以我在想以下内容:
var test = $('test').height();
$('test').scrollTop(test);
谢谢,
布赖恩
                  使用scrollHeight()有什么问题?
                
                
                  
                    —
                    Badr Hari 
                    
                  
                
              
                  @BadrHari:
                
                  
                    —
                    TJ Crowder 
                    
                  
                
              scrollHeight()jQuery中没有函数。
                
                  这是$('test')。get(0).scrollHeight();
                
                
                  
                    —
                    JFouad '16