Ich habe versucht, dem Code zu folgen, aber er funktioniert nicht und ich habe viel gesucht.
Code: Select all
$.fn.hasVerticalScrollbar = function () {
// This will return true, when the div has vertical scrollbar
return $frame[0].document.documentElement.offsetHeight() > this.height();
}
$.fn.hasHorizontalScrollbar = function () {
// This will return true, when the div has horizontal scrollbar
return $frame[0].document.documentElement.offsetWidth() > this.width();
}
Mobile version