Minecraft 服务器官网 - 欢迎加入我们的世界!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minecraft 服务器官网 - 欢迎加入我们的世界!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Welcome to Our Minecraft Server</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Gameplay</a></li>
<li><a href="#">Screenshots</a></li>
</ul>
</nav>
</header>
<section id="news">
<h2>Latest News</h2>
<article>
<h3>News Title 1</h3>
<p>News content goes here...</p>
</article>
<article>
<h3>News Title 2</h3>
<p>News content goes here...</p>
</article>
<article>
<h3>News Title 3</h3>
<p>News content goes here...</p>
</article>
</section>
<section id="gameplay">
<h2>Gameplay</h2>
<div class="gameplay-introduction">
<h3>Introduction</h3>
<p>Gameplay introduction goes here...</p>
</div>
<div class="gameplay-features">
<h3>Features</h3>
<ul>
<li>Feature 1</li>
<li>Feature 2</li>
<li>Feature 3</li>
</ul>
</div>
</section>
<section id="screenshots">
<h2>Screenshots</h2>
<div class="screenshot">
<img src="screenshot1.jpg" alt="Screenshot 1">
</div>
<div class="screenshot">
<img src="screenshot2.jpg" alt="Screenshot 2">
</div>
<div class="screenshot">
<img src="screenshot3.jpg" alt="Screenshot 3">
</div>
</section>
<footer>
<p>© 2021 Minecraft Server. All rights reserved.</p>
</footer>
</body>
</html>
<p>/* 全局样式 */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}</p>
<p>/* 头部样式 */
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}</p>
<p>header h1 {
margin: 0;
}</p>
<p>nav ul {
list-style-type: none;
padding: 0;
margin: 20px 0;
}</p>
<p>nav ul li {
display: inline;
margin-right: 10px;
}</p>
<p>nav ul li a {
color: #fff;
text-decoration: none;
}</p>
<p>/* 新闻板块样式 */
section#news {
background-color: #f1f1f1;
padding: 20px;
}</p>
<p>section#news h2 {
margin-top: 0;
}</p>
<p>section#news article {
margin-bottom: 20px;
}</p>
<p>section#news article h3 {
margin-top: 0;
}</p>
<p>/* 游戏玩法介绍块样式 */
section#gameplay {
background-color: #fff;
padding: 20px;
}</p>
<p>section#gameplay h2 {
margin-top: 0;
}</p>
<p>section#gameplay .gameplay-introduction h3,
section#gameplay .gameplay-features h3 {
margin-top: 0;
}</p>
<p>/* 游戏截图板样式 */
section#screenshots {
background-color: #f1f1f1;
padding: 20px;
}</p>
<p>section#screenshots h2 {
margin-top: 0;
}</p>
<p>section#screenshots .screenshot {
display: inline-block;
margin-right: 10px;
}</p>
<p>/* 页脚样式 */
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}</p>
原文地址: https://www.cveoy.top/t/topic/pZuj 著作权归作者所有。请勿转载和采集!