请作为一个有顶尖网页ui设计师以及顶级程序员的团队帮我写一个整体风格为浅绿色和浅蓝渐变的收录了一些MC红石机器的网页 要求如下 要有一个半透明导航栏一个大div中排列小div小div中写红石机器简介以及一个图示并有一个页脚。请帮我写代码
以下是一个示例代码,实现了您所描述的要求:
<!DOCTYPE html>
<html>
<head>
<title>MC红石机器</title>
<style>
body {
background: linear-gradient(to bottom right, #b9f0ff, #b4f5c4);
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.navbar {
background-color: rgba(255, 255, 255, 0.5);
padding: 10px;
}
.navbar a {
color: #333;
text-decoration: none;
margin-right: 10px;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 50px;
}
.card {
background-color: rgba(255, 255, 255, 0.8);
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
width: 300px;
padding: 20px;
margin: 10px;
}
.card h3 {
color: #333;
}
.card p {
color: #666;
}
.footer {
background-color: rgba(255, 255, 255, 0.5);
padding: 10px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<div class="navbar">
<a href="#">首页</a>
<a href="#">关于</a>
<a href="#">联系我们</a>
</div>
<div class="container">
<div class="card">
<h3>红石机器1</h3>
<p>这是红石机器1的简介。</p>
<img src="redstone_machine1.jpg" alt="红石机器1图示" width="200px">
</div>
<div class="card">
<h3>红石机器2</h3>
<p>这是红石机器2的简介。</p>
<img src="redstone_machine2.jpg" alt="红石机器2图示" width="200px">
</div>
<div class="card">
<h3>红石机器3</h3>
<p>这是红石机器3的简介。</p>
<img src="redstone_machine3.jpg" alt="红石机器3图示" width="200px">
</div>
</div>
<div class="footer">
<p>版权所有 © 2021 MC红石机器网页</p>
</div>
</body>
</html>
请注意,上述代码中的图片路径需要根据实际情况进行修改,确保图片文件存在且与代码文件位于同一目录下。另外,您还可以根据需要自行调整样式和布局
原文地址: http://www.cveoy.top/t/topic/iWcb 著作权归作者所有。请勿转载和采集!