Home  >  Article  >  Web Front-end  >  How to remove vertical scroll bar from iframe tag in html5? _html/css_WEB-ITnose

How to remove vertical scroll bar from iframe tag in html5? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:12:081608browse

I have searched many methods on the Internet to no avail, such as setting overflow-x:hidden; overflow-y:auto, scrolling="no", etc., but I can't even find these attributes. Please help! ! !


Reply to discussion (solution)

The height of the scroll bar of iframe depends on the height you set and the height of the content inside. When the height you set is greater than the height of the content inside, the scroll bar will not appear.

The height of the iframe's scroll bar depends on the height you set and the height of the content inside. When the height you set is greater than the height of the content inside, the scroll bar will not appear.

It is impossible that the outside height is greater than the inside content height. What I embedded inside is another web page, which is the content of an agreement. It is very long

scrolling="no"
Remove scrolling The bar is this attribute
Overflow seems to have no effect on iframe

scrolling="no"
The scroll bar is removed is this attribute
Overflow seems to have no effect on iframe
This was not found Attributes, html5

I used html5 for verification. Even if I changed to ie6 verification and used the method mentioned by the above brothers, the scroll bar is gone, but the content embedded in the iframe cannot be dragged. I want to hide the scroll bar, and the embedded web content can be dragged up and down. Please give me some advice. . .

http://www.cnblogs.com/yangbo108/archive/2007/09/06/884365.html

Is there any expert who can help me?

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