
批改狀態(tài):合格
老師批語(yǔ):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>學(xué)習(xí)仿作PHP中文網(wǎng)</title>
<link rel="stylesheet" href="/0101/php.css" />
</head>
<body>
<!-- 頁(yè)眉 -->
<header>
<div class="headernavs">
<ul class="navs">
<li>
<a href=""><img src="/0101/images/1.png" alt="" /></a>
</li>
<li><a href="">首頁(yè)</a></li>
<li><a href="">視頻教程</a></li>
<li><a href="">入門(mén)教程</a></li>
<li><a href="">社區(qū)問(wèn)答</a></li>
<li><a href="">技術(shù)文章</a></li>
<li><a href="">資源下載</a></li>
<li><a href="">編程詞典</a></li>
<li><a href="">工具下載</a></li>
<li><a href="">PHP培訓(xùn)</a></li>
<li></li>
</ul>
</div>
</header>
<div class="main-top">
<!-- 側(cè)邊菜單 -->
<nav class="menus">
<a href=""><img src="/0101/images/cbl.png" alt="" /></a>
</nav>
<!-- 頂部菜單 -->
<ul class="navs">
<li><a href="">PHP頭條</a></li>
<li><a href="">獨(dú)孤九賤</a></li>
<li><a href="">學(xué)習(xí)路線</a></li>
<li><a href="">在線工具</a></li>
<li><a href="">趣味課堂</a></li>
<li><a href="">社區(qū)問(wèn)答</a></li>
<li><a href="">課程直播</a></li>
<li><input type="text" placeholder="輸入關(guān)鍵字" /></li>
</ul>
<div class="slider">
<!-- 輪播圖 -->
<a href=""><img src="/0101/picture/61.jpg" alt="" /></a>
</div>
<!-- 課程推薦區(qū) -->
<ul class="course">
<li>
<a href=""><img src="/0101/picture/99.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/98.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/97.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/96.jpg" alt="" /></a>
</li>
</ul>
</div>
<div class="main-min">
<a href=""><img src="/0101/picture/69.jpg" alt="" /></a>
</div>
<!-- 課程列表區(qū) -->
<div class="main-coures">
<h3><\>php入門(mén)精品課程<\></h3>
<ul class="coures-list">
<li>
<a href=""><img src="/0101/picture/1342.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/100.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/101.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/102.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/103.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/104.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/105.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/107.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/108.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/109.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/110.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/111.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/112.jpg" alt="" /></a>
</li>
<li>
<a href=""><img src="/0101/picture/113.jpg" alt="" /></a>
</li>
</ul>
</div>
<!-- 頁(yè)腳 -->
<footer>頁(yè)腳</footer>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
li {
list-style: none;
}
a {
color: #444444;
text-decoration: none;
}
header {
height: 80px;
background-color: lightskyblue;
margin-bottom: 30px;
}
.headernavs > ul.navs {
display: grid;
grid-template-columns: 160px repeat(10, 130px) 1fr;
place-items: center;
}
footer {
height: 60px;
color: #eee;
background-color: #444;
}
/* --------------------------------- */
.main-top {
height: 550px;
width: 1200px;
margin-bottom: 30px;
/* background-color: #ccc; */
display: grid;
grid-template-columns: 216px 1fr;
grid-template-rows: 60px 1fr 155px;
margin: auto;
}
.main-min > a > img {
width: 1200px;
height: 80px;
margin-bottom: 30px;
background-color: brown;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
margin: 30px auto;
border-radius: 10px;
}
/* 左側(cè)導(dǎo)航區(qū) */
.main-top > nav.menus {
grid-area: span 3;
background-color: lightgreen;
border-radius: 10px 0 0 10px;
}
/* 左側(cè)導(dǎo)航區(qū)附一張圖片代替 */
.main-top > nav.menus > a > img {
width: 100%;
height: 100%;
border-radius: 10px 0 0 10px;
}
/* 頂部的導(dǎo)航區(qū) */
.main-top > ul.navs {
background-color: lightcyan;
display: grid;
grid-template-columns: repeat(8, 103px) 1fr;
place-items: center;
border-radius: 0 10px 0 0;
}
.main-top > ul.navs > li:last-of-type {
place-self: center start;
padding-left: 80px;
}
/* 輪播圖已經(jīng)自動(dòng)歸位了 */
.main-top > ul.course {
background-color: wheat;
padding: 10px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
border-radius: 0 0 10px 0;
}
.main-top > ul.course > *:hover {
background-color: pink;
cursor: pointer;
transition: 1s;
}
.main-top .slider {
background-color: #cccc;
}
.main-top .slider > a > img {
height: 100%;
width: 100%;
}
.main-top > ul.course > * {
background-color: violet;
cursor: pointer;
border-radius: 5px;
}
.main-top > ul.course > li > a > img {
height: 100%;
width: 100%;
cursor: pointer;
border-radius: 5px;
}
/* ------------------------------ */
.main-coures {
width: 1200px;
height: 646px;
padding: 15px;
background-color: lightskyblue;
margin: 30px auto;
display: grid;
grid-template-rows: 50px 1fr;
gap: 20px;
border-radius: 10px;
}
.main-coures h3 {
color: #444444;
text-align: center;
/* margin-bottom: 30px; */
}
.main-coures .coures-list {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(3, 1fr);
/* grid-template-columns: repeat(auto-fit,minmax(15em,1fr)); */
/* grid-template-rows: repeat(auto-fit,minmax(13em,70%)); */
gap: 10px;
}
.main-coures .coures-list > * {
background-color: lightcyan;
border-radius: 10px;
}
.main-coures .coures-list > li > a > img {
width: 100%;
}
.main-coures .coures-list > li:first-of-type {
grid-area: span 2;
}
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)