Home >Web Front-end >JS Tutorial >Can I Make an iFrame 100% Height Across All Major Browsers?

Can I Make an iFrame 100% Height Across All Major Browsers?

Barbara Streisand
Barbara StreisandOriginal
2024-12-04 04:55:12256browse

Can I Make an iFrame 100% Height Across All Major Browsers?

Full-Screen iFrame with a Height of 100%

Question:

Is it possible to set the height of an iframe to 100% in all major browsers (IE/Firefox/Safari)?

Answer:

Yes, it is possible to set the height of an iframe to 100% using the following methods:

Method 1:

<body>

Method 2:

<body>

Hiding Scrollbars:

To hide the scrollbars of the iframe, you can use the following methods:

Method 1:

<body>

Method 2 (Hack):

<body>

The above is the detailed content of Can I Make an iFrame 100% Height Across All Major Browsers?. For more information, please follow other related articles on the PHP Chinese website!

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