内嵌框架iframe、超链接target、滚动标签(Html基础)5

son.html:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		我是son页面<br />
		<a href="http://baidu.com" target="_blank">新窗口打开百度</a><br />
		<a href="http://baidu.com" target="_self">自身窗口打开百度</a><br />
		<a href="http://baidu.com" target="_parent">父容器打开百度</a><br />
		<a href="http://baidu.com" target="_top">最大容器打开百度</a><br />
	</body>
</html>

test.html:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Html基础</title>
	</head>
	<body>
		<a href="https://www.audi.cn/cn/web/zh.html" target="car">在指定iframe打开页面</a><br />
		<iframe src="son.html" name="car" scrolling="no" frameborder="1" width="150px" height="400px"></iframe>
		<!-- 
			direction:滚动方向
			behavior:滚动方式来回、重复
			scrollamount:每次走多少像素
			scrolldelay:每间隔多久走一次(毫秒)
		 -->
		<marquee direction="right" behavior="alternate" scrollamount="100" scrolldelay="1000">滚动标签</marquee>
	</body>
</html>

 

posted @ 2020-11-03 15:12  余光都是你  阅读(74)  评论(0)    收藏  举报