Finden Sie ein Element, das die Anzeige der horizontalen Bildlaufleiste in Google Chrome verursacht

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Finden Sie ein Element, das die Anzeige der horizontalen Bildlaufleiste in Google Chrome verursacht

by Anonymous » 19 Aug 2025, 22:42

Wenn ich mein Chromfenster auf 328 x 455 Pixel sammle, sehe ich immer noch eine horizontale Bildlaufleiste.
Wie kann ich herausfinden, welches Element dies verursacht? Ich habe Elemente über die Entwicklerkonsole angesehen, kann aber das Element nicht finden.

Code: Select all

    $(function () {
var f = $('body'); //document.getElementById("body");
var contentHeight = f.scrollHeight;
var declaredHeight = $(f).height();

var contentWidth = f.scrollWidth;
var declaredWidth = $(f).width();
if (contentHeight > declaredHeight) {
console.log("invalid height");
}
if (contentWidth > declaredWidth) {
console.log("invalid width");
}
});

Top