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
Release: 2024-12-04 04:55:12
Original
205 people have browsed it

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>
Copy after login
Copy after login
Copy after login
Copy after login

Method 2:

<body>
Copy after login
Copy after login
Copy after login
Copy after login

Hiding Scrollbars:

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

Method 1:

<body>
Copy after login
Copy after login
Copy after login
Copy after login

Method 2 (Hack):

<body>
Copy after login
Copy after login
Copy after login
Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template