", and the settable attribute value There are auto, yes, and no."/> ", and the settable attribute value There are auto, yes, and no.">
Home > Article > Web Front-end > What does scrolling mean in html?
In HTML, the Chinese meaning of scrolling is "scrolling"; it is an attribute of the iframe tag, used to specify whether to display scroll bars in the iframe, the syntax format is "
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
The scrolling attribute of the HTML
The scrolling attribute specifies whether to display scroll bars in the iframe. By default, if the content exceeds the iframe, scrollbars appear within the iframe.
Grammar format:
<iframe scrolling="value">
Attribute value | Description |
---|---|
auto | Appear scrollbars if needed (default). |
yes | Always show scroll bars (even when not needed). |
no | Never show scrollbars (even if needed). |
Example:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>显示滚动条的 iframe:</p> <iframe src="https://www.php.cn" width="200" height="200" scrolling="yes"> <p>您的浏览器不支持 iframe 标签。</p> </iframe> <p>没有滚动条的 iframe :</p> <iframe src="https://www.php.cn" width="200" height="200" scrolling="no"> <p>您的浏览器不支持 iframe 标签。</p> </iframe> </body> </html>
Recommended tutorial: "html video tutorial"
The above is the detailed content of What does scrolling mean in html?. For more information, please follow other related articles on the PHP Chinese website!