English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt, wie die HTML iframe scrolling-Eigenschaft angibt, ob ein Scrollbalken im <iframe> angezeigt wird. Normalerweise erscheint ein Scrollbalken im <iframe>, wenn der Inhalt größer ist als der <iframe> selbst.
Mit Scrollbalken <iframe>:
<!DOCTYPE html> <html> <head> <title>HTML: <iframe> Scrollen Eigenschaft - Grundlegende Anleitungswiki oldtoolbag.com</title> <body> <p>Immer Scrollbalken anzeigen:/p> <iframe src="/" width="400" height="250" scroll="yes"> <p>Ihr Browser unterstützt keine iframes./p> </iframe> <p>Keine Scrollbalken anzeigen:/p> <iframe src="/" width="400" height="250" scroll="no"> <p>Ihr Browser unterstützt keine iframes./p> </iframe> <p>HTML5 The scrolling attribute is not supported, please use CSS instead.</p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
The scrolling attribute is deprecated but still supported in all major browsers.
HTML5 The scrolling attribute for <iframe> is not supported. Please use CSS instead.
The scrolling attribute specifies whether a scrollbar is displayed in the <iframe>.
Normally, when the content is larger than the <iframe>, a scrollbar appears in the <iframe>.
<iframe scrolling="auto|yes|no">
Value | Description |
---|---|
auto | Display scrollbars as needed (default value). |
yes | Always display scrollbars (even if not necessary). |
no | Never display scrollbars (even if necessary). |