找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 查看内容

html中scrolling是什么意思

作者:模板之家 2021-6-9 08:14 191人关注

在html中,scrolling的中文意思为“滚动”;它是iframe标签的一个属性,用于规定是否在iframe中显示滚动条,语法格式“iframe scrolling=值”,可设置的属性值有auto、yes、no。

在html中,scrolling的中文意思为“滚动”;它是iframe标签的一个属性,用于规定是否在iframe中显示滚动条,语法格式“<iframe scrolling="值">”,可设置的属性值有auto、yes、no。

本教程操作环境:windows7系统、HTML5版、Dell G3电脑。

1.png

HTML <iframe> 标签的 scrolling 属性

scrolling 属性规定是否在 iframe 中显示滚动条。默认地,如果内容超出了 iframe,滚动条就会出现在 iframe 中。

语法格式:

<iframe scrolling="value">
属性值描述
auto在需要的情况下出现滚动条(默认值)。
yes始终显示滚动条(即使不需要)。
no从不显示滚动条(即使需要)。

示例:

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

路过

雷人

握手

鲜花

鸡蛋
来自: 网络收集

全部回复(0)