1 Star 0 Fork 0

多哥喵/Css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
简单官网.html 3.79 KB
一键复制 编辑 原始数据 按行查看 历史
多哥喵 提交于 2024-08-10 09:49 +08:00 . '初始化仓库提交'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
font-family: Arial;
font-size: 14px;
margin: 0;
padding: 0;
border: none;
}
a {
text-decoration: none;
}
ul {
list-style: none;
}
.outer {
width: 100%;
height: 100vh;
background-image: url('./img/bg.jpg');
background-size: cover;
}
.header {
height: 70px;
background-color: rgba(0, 0, 0, 0.5);
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.header-nav-list {
margin: 0 20px;
font-size: 20px;
padding: 10px;
color: white;
border: 1px solid white;
border-radius: 8px;
cursor: pointer;
}
.content {
width: 100%;
display: flex;
height: calc(100vh - 70px);
}
.content-nav {
width: 800px;
height: 300px;
margin: auto;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.content-item {
display: flex;
flex-direction: column;
color: white;
width: 128px;
height: 200px;
justify-content: space-evenly;
align-items: center;
cursor: pointer;
transition: 0.1s linear;
}
.content-item span {
font-size: 20px;
}
.email {
background-color: #595ca8;
}
.cloud {
background-color: #ff9f2e;
}
.phone {
background-color: #01a6de;
}
.wechat {
background-color: #1dc128;
}
.online {
background-color: #015E91;
}
.content-item:hover {
transform: scale(1.1);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}
</style>
</head>
<body>
<div class="outer">
<div class="header">
<img src="./img/logo.png" alt="尚硅谷">
<ul class="header-nav">
<li class="header-nav-list">国内校区</li>
<li class="header-nav-list">缅甸校区</li>
<li class="header-nav-list">非洲校区</li>
<li class="header-nav-list">美国校区</li>
</ul>
</div>
<div class="content">
<div class="content-nav">
<div class="content-item email">
<img src="./img/item1.png" alt="">
<span>我的邮箱</span>
</div>
<div class="content-item cloud">
<img src="./img/item2.png" alt="">
<span>云服务</span>
</div>
<div class="content-item phone">
<img src="./img/item3.png" alt="">
<span>手机课堂</span>
</div>
<div class="content-item wechat">
<img src="./img/item4.png" alt="">
<span>微信服务</span>
</div>
<div class="content-item online">
<img src="./img/item5.png" alt="">
<span>在线客户</span>
</div>
</div>
</div>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lazza/css.git
git@gitee.com:lazza/css.git
lazza
css
Css
master

搜索帮助