-
框架集
<!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>
-
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>
HTML——框架集+css引入
最新推荐文章于 2023-11-29 14:55:42 发布