css+div实现自适应响应式团队介绍图文卡片列表代码
代码语言:html
所属分类:响应式
代码描述:css+div实现自适应响应式团队介绍图文卡片列表代码
代码标签: css div 自适应 响应式 团队 介绍 图文 卡片 列表 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>团队成员 - 创新科技公司</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif
}
body {
background-color: #f8f9fa;
color: #333;
line-height: 1.6
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px
}
header {
text-align: center;
padding: 60px 20px;
background: linear-gradient(135deg,#6a11cb 0,#2575fc 100%);
color: white;
border-radius: 0 0 20px 20px;
margin-bottom: 40px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1)
}
h1 {
font-size: 2.8rem;
margin-bottom: 15px;
font-weight: 700
}
.subtitle {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto;
opacity: .9
}
.team-section {
margin-bottom: 60px
}
.section-title {
text-align: center;
font-size: 2rem;
margin-bottom: 40px;
color: #2c3e50;
position: relative
}
.section-title:after {
content: '';
display: block;
width: 80px;
height: 4px;
background: linear-gradient(to right,#6a11cb,#2575fc);
margin: 10px auto;
border-radius: 2px
}
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
gap: 30px
}
.member-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.08);
transition: transform .3s ease,box-shadow .3s ease;
position: relative
}
.member-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.15)
}
.member-img {
width: 100%;
height: 250px;
object-fit: cover;
transition: transform .5s ease
}
.member-card:hover .member-img {
transform: scale(1.05)
}
.member-info {
padding: 25px;
text-align: center
}
.member-name {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 5px;
color: #2c3e50
}
.member-position {
color: #6a11cb;
font-weight: 500;
margin-bottom: 15px;
font-size: 1rem
}
.member-desc {
color: #666;
font-size: .95rem;
margin-bottom: 20px
}
.social-links {
display: flex;
justify-content: center;
gap: 15px
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0