iframe元素

iframe元素

<iframe…/>元素可以在普通html页面中使用,用于在普通html中生成一个行内框架,可以放在html页面中的任意位置。

1.src:指定该iframe将装载哪个页面
2.name:设置该iframe的名字
3.scrolling:设置是否显示滚动条,该属性支持yes(显示)、no(不显示)、auto(自动,框架里放不下时显示)
4.height:设置高度
5.width:设置宽度
6.frameborder:设置是否显示边框

<!DOCTYPE html>
<html>
<head>
	<title>majic_Jing</title>
	<style type="text/css">
		.div1{
			width:200px;height:530px;  float: left; border: 1px solid #ccc;
		}
		.div2{
			width:800px ;height:530px; float: left; border: 1px solid #ccc;
		}
	</style>
</head>
<body>
	<div class="div1">
		<ul>
			<li> <a href="http://baidu.com" target="demo" 
                           style="text-decoration: none;color: #000">点击跳转百度</a></li><br>
			<li> <a href="http://jd.com" target="demo" 
                           style="text-decoration: none;color: #000">点击跳转京东</a></li><br>
			<li> <a href="https://mp.csdn.net" target="demo" 
                           style="text-decoration: none;color: #000">点击跳转CSDN</a></li><br>
		</ul>	
	</div>
	<div class="div2">
		<iframe src="map.html" width="800" height="530" name="demo" 
              frameborder="0"></iframe>
	</div>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值