I am trying to show the content of techcrunch in IFrame. I am using height:100% for IFrame, even then it shows the scrollbar. So ultimately there are two scrollbars one for the page and one for the IFrame.
I just want to have one scrollbar and that is for the page. I would like to grow my Iframe automatically so that it will not have any scrollbar.
Is it possible ?
Add scrolling="no"
to the <iframe>
, like this:
<iframe src="http://www.techcrunch.com" id="_content" frameborder="0" noresize="noresize" scrolling="no"></iframe>
我担心我认为这是不可能的:你必须得到inlying文件的高度来调整iframe
- 同源策略将阻止你这样做。
seamless="seamless"
for HTML5 mode
As was found on http://www.quackit.com/html/codes/hide_scrollbar.cfm
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.