HTML5知识点3

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>html知识之创建框架结构</title>
</head>

<!--框架结构-->
<!-- 有frameset就没有body,有也是鸡肋 -->	
	<!--bordercolor是boder的颜色,border是border的宽度-->
	<!--子框架没有设定边框宽度的话,就和爸爸一样-->
<frameset rows="40%,*%" cols="*" border="23px" bordercolor="#FF0000" >  <!--*百分号说明剩下的自动成为一个frame-->
	<!-- noresize固定框架的尺寸,scrolling设置滚动条
   auto,根据情况显示滚动条;no,无论如何都不显示;yes,无论如何都显示-->
	<frame noresize="noresize" src="html知识点2.html" scrolling="auto">
  <frameset cols="38.2%,*%">
	  <!-- marginheight和marginwidth属性,分别代表页面内容与边框的上下和左右距离-->
	<frame src="通信.html" frameborder="0" marginheight="50px" marginwidth="50px" name="blue"> 
	<frame src="表单.html#aaa" frameborder="0" name="showframe"> <!--frameborder决定是否显示边框-->
	  <!-- noframes标签,加以注释浏览器不支持frameset-->
	  <noframes><body>baoqian,您的浏览器不支持</body></noframes>
  </frameset>
</frameset>
	<!-- iframe框架,拥有frame框架的一切属性。多了width,height,align分别表示框加的宽和高和框架中内容的对齐方式-->
</html>

猜你喜欢

转载自blog.csdn.net/qq_39326472/article/details/84777757