English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges HTML-Tag-Verzeichnis

HTML: <iframe> scroll Eigenschaft

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.

 HTML <iframe> Tag

Online-Beispiel

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

The scrolling attribute is deprecated but still supported in all major browsers.

Definition and Usage

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>.

Syntax

<iframe scrolling="auto|yes|no">

Attribute Value

ValueDescription
autoDisplay scrollbars as needed (default value).
yesAlways display scrollbars (even if not necessary).
noNever display scrollbars (even if necessary).
 HTML <iframe> Tag