Home >Web Front-end >HTML Tutorial >The scroll bar appears after the height in the iframe is set to 100%_html/css_WEB-ITnose

The scroll bar appears after the height in the iframe is set to 100%_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:45:371289browse

Use the layout component of easyui, as shown in Figure 1 below. After an iframe with a height of 100% is embedded in the center, a vertical scroll bar will appear in the div containing this iframe.


Figure 1


Without easyui, after directly nesting the iframe for testing, I found that after setting

body{margin:0;padding:0;}

the scroll bar was gone

But it doesn’t work in easyui. Could you please help me, demo address:
http://pan.baidu.com/s/1mgBqkh6


Reply to discussion (solution)

Did it myself

http://stackoverflow.com/questions/9129182/iframe-100-height-causes-vertical-scrollbar

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn