<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
/* 去除浏览器默认样式 */
* {
padding: 0px;
margin: 0px;
}
/* 顶部线条 */
.top_line {
width: 1200px;
height: 2px;
background-color: cornflowerblue;
margin: 0px auto;
}
/* logo广告区域 */
.logo_area {
width: 1200px;
margin: 5px auto;
}
.logo_area_left,
.logo_area_center,
.logo_area_right {
height: 80px;
float: left;
}
/* logo广告区域左侧 */
.logo_area_left {
width: 250px;
background-color: antiquewhite;
background-image: url(img/logo.png);
background-repeat: no-repeat;
background-position: center;
}
/* logo广告区域中间 */
.logo_area_center {
width: 700px;
}
/* logo广告区域右侧 */
.logo_area_right {
line-height: 80px;
width: 250px;
text-align: center;
background-color: antiquewhite;
}
/* logo广告区域右侧文字修饰 */
.logo_area_right_login_reg {
text-decoration: none;
color: blue;
font-weight: bold;
}
/* 导航栏 */
.dh_menu {
margin: 10px auto;
width: 1200px;
}
/* 导航菜单 */
.menu {
width: 171.428px;
font-size: 20px;
float: left;
background-color: cornflowerblue;
color: white;
padding: 10px 0px;
text-align: center;
margin-top: 10px;
}
/* 移入菜单伪类 */
.menu:hover {
background-color: ghostwhite;
color: black;
}
/* 湖院广告 */
.hu_adver {
width: 1200px;
margin: auto;
}
/* 内容区 */
.content {
width: 1200px;
height: 500px;
background-color: #F8F8FF;
margin: auto;
}
/* 内容区类型 */
.type {
width: 380px;
height: 195px;
background-color: bisque;
float: left;
}
/* 内容区类型导航 */
.content_type_dh {
height: 57px;
border-bottom: cornflowerblue 3px solid;
}
/* 内容区类型文字内容 */
.content_type_word {
height: 42px;
line-height: 45px;
padding-left: 15px;
border-bottom: gray 3px dashed;
}
/* 内容区类型文字内容左浮动 */
.content_type_dh_leftfu {
width: 80px;
color: white
用HTML和CSS制作一个网页
于 2022-02-06 15:48:48 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)