HTML——框架集+css引入

  1. 框架集


    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="utf-8">
    		<title></title>
    	</head>
    	<!-- <body></body> -->
    	
    	<!-- 框架集 
    	设置一下每个窗口在页面上所占的比例 否则默认显示的就是第一个框架
    	
    	框架显示的时候可以横向(行)排布 也可以纵向(列)排布
    		* 表示的是自适应大小
    	
    	-->
    	<!-- 横向布局 -->
    	<!-- <frameset rows="40%, *">
    		<!-- src 引入这个框架显示的资源 -->
    		<!--<frame src="http://www.baidu.com" />
    		<frame src="1.常用的标签.html" />
    	</frameset> -->
    	
    	<!-- 纵向布局 -->
    	<!-- <frameset cols="30%, *">
    		<frame src="http://www.baidu.com" />
    		<frame src="1.常用的标签.html" />
    	</frameset> -->
    	
    	<!-- 既有横向排布 又有纵向排布
    		先完成横向的排布
    			再完成纵向的排布
    	 -->
    	 <!-- 属性border 设置框架边框的宽度 -->
    	<frameset rows="30%, *" border="1">
    		<!-- 给框架添加一个属性 noresize 限制随意改动框架大小 -->
    		<frame src="http://www.baidu.com" noresize />
    		<frameset cols="40%, *">
    			<frame src="https://www.w3school.cn" noresize />
    			<frame src="1.常用的标签.html" />
    		</frameset>
    	</frameset>
    	
    </html>
    

     

  2. css引入


    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="utf-8">
    		<title></title>
    		<!-- 外部引用
    		rel 必须设置的 CSS文件的话 对应的值就是stylesheet
    		href 引入的是css文件的路径
    		-->
    		<link rel="stylesheet" href="../css/style.css" />
    		
    		<!-- 内部引用 -->
    		<style>
    			/* CSS的内容 */
    			/* 元素选择器定位标签 */
    			p{
    				/* 边框 */
    				border: dotted 2px palevioletred;
    				/* 设置文字颜色 */
    				color: purple;
    				/* 设置背景颜色 */
    				background-color: deepskyblue;
    			}
    		</style>
    		
    		
    	</head>
    	<body>
    		
    		<!-- 行内引入设计文字颜色 -->
    		
    	</body>
    </html>
    

     

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值