简体   繁体   中英

$(window).height is different in internet explorer?

I currently have a vertical scrolling website with multiple divs,

http://dirkdunn.com

there are 4 divs, so when targeting, I can do $(window).height / 4,

however, internet explorer looks at window height as the viewport, and not the whole scrolling screen, and in turn I get a screen with very small divs,

is there an equivalent to IE that I can use to that it will look at it like the other browsers?

Instead of using using $(window).height try using $(window).innerheight for more details visit this . If you want to know more about height, innerheight, outerheight, outerheight(true) visit this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM