", 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?

What does scrolling mean in html?

青灯夜游
青灯夜游Original
2021-06-08 16:55:055403browse

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 "

What does scrolling mean in html?

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

What does scrolling mean in html?

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!

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