div+Css布局实现员工图文卡片排行榜列表效果代码
代码语言:html
所属分类:布局界面
代码描述:div+Css布局实现员工图文卡片排行榜列表效果代码
代码标签: div Css 布局 员工 图文 卡片 排行榜 列表
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css"> <style> :root { --primary: #4361ee; --secondary: #3f37c9; --accent: #4895ef; --light: #f8f9fa; --dark: #212529; --success: #4cc9f0; --warning: #f72585; --muted: #6c757d; --card-bg: rgba(255,255,255,0.85); --glass-effect: blur(10px) } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif } body { background: linear-gradient(135deg,#f5f7fa 0,#c3cfe2 100%); color: var(--dark); line-height: 1.7; min-height: 100vh; padding: 2rem; background-attachment: fixed; background-size: cover } .container { max-width: 1400px; margin: 0 auto } header { text-align: center; margin-bottom: 3rem; position: relative; padding: 2rem 0 } .header-content { position: relative; z-index: 2 } h1 { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(to right,#4361ee,#3a0ca3,#f72585); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -1px } .subtitle { font-size: 1.25rem; color: var(--muted); max-width: 700px; margin: 0 auto; font-weight: 300 } .decorative-circle { position: absolute; border-radius: 50%; opacity: .15; z-index: 1 } .circle-1 { width: 200px; height: 200px; background: var(--primary); top: -50px; left: 10%; animation: float 6s ease-in-out infinite } .circle-2 { width: 150px; height: 150px; background: var(--warning); bottom: -30px; right: 15%; animation: float 8s ease-in-out infinite reverse } .honor-board { display: grid; grid-template-columns: repeat(auto-fill,minmax(350px,1fr)); gap: 2rem; margin-bottom: 4rem } .honor-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all .3s cubic-bezier(0.25,0.8,0.25,1); backdrop-filter: var(--glass-effect); border: 1px solid rgba(255,255,255,0.2); position: relative; z-index: 2 } .honor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(to right,var(--primary),var(--accent)) } .honor-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12) } .card-header { padding: 1.5rem 1.5rem 0; position: relative } .card-title { font-size: 1.5rem; margin: 0; color: var(--dark); font-weight: 600; display: flex; align-items: center } .card-title i { margin-right: .75rem; color: var(--primary) } .card-body { padding: 1.5rem } .honoree { display: flex; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05) } .honoree:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0 } .avatar { width: 70px; height: 70px; border-radius: 50%; o.........完整代码请登录后点击上方下载按钮下载查看
网友评论0