javascript - Height 100% issue in IE10. Works in Quirks mode in IE and all other browers -
please see following page:
http://www.judsondesigns.com/demos/jscroller/index.html
if notice in ie, causing scrolling. every other browser ok. why ie causing scroll? how can fix this?
thanks
judson
here code using:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <style> html, body{ height:100%; width: 100%; margin: 0px; padding: 0px; } </style> </head> <body> <div style="display:table; width: 100%; height:100%;"> <div style="display: table-row; background: red">test</div> <div style="display: table-row"> <div style="display: table-cell; height:100%; width:100%;overflow: hidden "> <div style=" height:100%; width:100%; overflow:hidden; background: #06f">test123 </div> </div> </div> <div style="display:table-row; background: red;">test</div></div> </div> </body> </html>
and picture normal ie10 mode:
and in quirks mode( how need )
you should set negative margin-bottom
on div
containing test123
text of value higher height of table-row
@ bottom. set -100%
safe, fix in ie, , won't break in other browsers.
here's jsfiddle
Comments
Post a Comment