2014-02-10 63 views

回答

3

我想我可能有解決方案:

var rect = element.getBoundingClientRect() 
var scrollHeight = element.scrollHeight + (parseInt(rect.height) - rect.height) 
var scrollWidth = element.scrollWidth + (parseInt(rect.width) - rect.width) 
相關問題