What does scrolling mean in html?

青灯夜游
Release: 2021-06-08 16:55:05
Original
5398 people have browsed it

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">
Copy after login
Attribute valueDescription
auto Appear scrollbars if needed (default).
yesAlways show scroll bars (even when not needed).
noNever 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>
Copy after login

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!

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template