*IT HTML:足迹第八十八步:HTML通用模版

it2023-05-21  77

HTML通用模版是什么

<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"><!-- 声明字符集,防止乱码 --> <meta name="Keywords" content=""><!-- 搜索引擎方便找到本网站 --> <meta name="Description" content=""><!-- 找到网站以后的一个描述 --> <title>唱吧首页</title> <!-- css层叠样式表,可不写type --> <style type = "text/css"> /* 去掉默认样式 */ *{ /* margin 上右下左,边缘 */ margin:0px; /* padding上右下左,垫子 */ padding:0px; } #wrap{ /* 背景颜色 */ background:#ff5046; font-family:Microsoft yahei; overflow:hiden; } .header{ /* 微信截图圈下width和height */ width:960px; height:80px; margin:0px auto;/* 上为零,aoto--左右居中 */ color:#fff;/* 字体白色 */ line-height:80px;/* 行高,配合overflow */ } </style> </head> <!-- 网页可视内容区域 --> <body> <div id="wrap"> <div class ="header"> <!-----------> </div> </div> </body>
最新回复(0)