class13网页设计

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
* {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
.main-box {
width: 980px;
margin: 0 auto;
}
.nav {
background: url("images/head_bg.jpg") repeat-x;
height: 128px;
}
.nav li {
float: left;
}
.nav .item a {
display: inline-block;
width: 120px;
height: 128px;
line-height: 64px;
text-align: center;
color: #fff;
margin: 0 5px;
font-size: 17px;
}
.nav .item a:hover {
background: url("images/xuanfu.png") no-repeat;
}
.banner {
margin-top: 10px;
}
.banner img {
width: 100%;
}
.sortlist {
margin-top: 10px;
display: flex;
box-shadow: 0 0 0 10px rgb(110, 190, 45) inset;
padding: 10px;
box-sizing: border-box;
}
.sortlist .leftbox li {
display: flex;
}
.leftbox {
width: 333px;
}
.leftbox li p {
display: inline-block;
width: 100%;
text-align: center;
}
.leftbox .top p {
line-height: 180px;
}
.leftbox .bottom p {
line-height: 150px;
}
.leftbox .top {
height: 180px;
background-color: #F2F2F2;
}
.leftbox .bottom {
height: 150px;
background-color: #F2F2F2;
margin-top: 10px;
}
.centerbox {
width: 280px;
margin-left: 10px;
}
.centerbox .top {
display: flex;
margin-bottom: 10px;
height: 120px;
background-color: #F2F2F2;
}
.centerbox .top p {
line-height: 120px;
text-align: center;
flex: 1;
}
.centerbox .bottom {
background-color: #F2F2F2;
display: flex;
height: 210px;
}
.centerbox .bottom p {
line-height: 210px;
text-align: center;
flex: 1;
}
.rightbox {
margin-left: 10px;
flex: 1;
}
.rightbox .top {
display: flex;
margin-bottom: 10px;
height: 100%;
background-color: #F2F2F2;
}
.rightbox .top img {
height: 100%;
width: 200px;
}
.rightbox .top p {
line-height: 330px;
text-align: center;
flex: 1;
}

.hot {
margin-top: 50px;
}
.hot .title {
background-color: rgb(110, 190, 45);
color: #fff;
display: inline-block;
padding: 10px 20px;
font-weight: normal;
}
.hot .list {
border: 1px solid #ddd;
display: flex;
padding: 20px;
box-sizing: border-box;
gap: 10px;
}
.hot .item {
flex: 1;
}
.hot .item .mainimg {
width: 100%;
}
.hot .item .intitle {
text-align: center;
font-size: 19px;
line-height: 56px;
color: #444;
}
.hot .item .hotinfo {
background-color: rgb(110, 190, 45);
height: 38px;
display: flex;
width: calc(100% - 20px);
margin-left: 10px;
margin-bottom: 10px;
}
.hot .item {
border: 1px solid #ddd;
}
.hot .item .hotinfo .info {
line-height: 38px;
color: #fff;
text-align: center;
flex: 1;
font-size: 15px;
}
.footer {
padding: 50px 0;
text-align: center;
color: #fff;
background: #111;
margin-top: 20px;
}
</style>
<body>
<div class="nav">
<ul class="main-box">
<li><img src="./images/logo.png" alt="logo"></li>
<li class="item"><a href="#">首页</a></li>
<li class="item"><a href="#">学校介绍</a></li>
<li class="item"><a href="#">课程设置</a></li>
<li class="item"><a href="#">教资力量</a></li>
<li class="item"><a href="#">招生问答</a></li>
<li class="item"><a href="#">教学活动</a></li>
</ul>
</div>
<div class="main-box">
<div class="banner">
<img src="./images/banner.jpg" alt="banner">
</div>
<div class="sortlist">
<ul class="leftbox">
<li class="top">
<img src="./images/pic01.jpg" alt="">
<p>大学专区</p>
</li>
<li class="bottom">
<img src="./images/pic02.jpg" alt="">
<p>求职专区</p>
</li>
</ul>
<ul class="centerbox">
<li class="top">
<img src="./images/pic03.jpg" alt="">
<p>高中专区</p>
</li>
<li class="bottom">
<img src="./images/pic04.jpg" alt="">
<p>考证专区</p>
</li>
</ul>
<ul class="rightbox">
<li class="top">
<img src="./images/pic05.jpg" alt="">
<p>线上精品课专区</p>
</li>
</ul>
</div>
<div class="hot">
<h2 class="title">热门课程 / Popular courses</h2>
<ul class="list">
<li class="item">
<img class="mainimg" src="./images/match01.jpg" alt="">
<p class="intitle">软件工程师课程</p>
<div class="hotinfo">
<img class="hotimg" src="./images/gouwu.jpg" alt="">
<p class="info">高级IT人才的捷径</p>
</div>
</li>
<li class="item">
<img class="mainimg" src="./images/match02.jpg" alt="">
<p class="intitle">Java课程</p>
<div class="hotinfo">
<img class="hotimg" src="./images/gouwu.jpg" alt="">
<p class="info">高级IT人才的捷径</p>
</div>
</li>
<li class="item">
<img class="mainimg" src="./images/match03.jpg" alt="">
<p class="intitle">软件工程师课程</p>
<div class="hotinfo">
<img class="hotimg" src="./images/gouwu.jpg" alt="">
<p class="info">高级IT人才的捷径</p>
</div>
</li>
<li class="item">
<img class="mainimg" src="./images/match04.jpg" alt="">
<p class="intitle">软件工程师课程</p>
<div class="hotinfo">
<img class="hotimg" src="./images/gouwu.jpg" alt="">
<p class="info">高级IT人才的捷径</p>
</div>
</li>
</ul>
</div>
</div>
<div class="footer">
Copyright © 2020-2030 CHAOLIUFUSHIcom, All rights reserved.<br>
2020-2023,版权所有 优课网 00CP备222222222
</div>
</body>
</html>