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"> <title>邀请好友注册,双方得奖励</title> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.5.3.0.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> <style> :root { --primary: #4361ee; --secondary: #7209b7; --accent: #f72585; --light: #f8f9fa; --dark: #212529; --success: #4cc9f0; --warning: #f9c74f; --danger: #f94144; --gradient: linear-gradient(135deg, var(--primary), var(--secondary)); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Microsoft YaHei', sans-serif; } body { background-color: #f5f7fa; color: var(--dark); line-height: 1.6; overflow-x: hidden; } .page-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* 头部样式 */ .header { text-align: center; padding: 40px 0; position: relative; } .header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; display: inline-block; } .header h1::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gradient); border-radius: 2px; } .header p { font-size: 1.2rem; color: #6c757d; max-width: 600px; margin: 20px auto 0; } /* 主横幅 */ .hero-banner { position: relative; background: var(--gradient); border-radius: 20px; padding: 60px 40px; margin-bottom: 50px; overflow: hidden; box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2); } .hero-content { position: relative; z-index: 2; color: white; max-width: 600px; } .hero-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; } .hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; } .hero-cta { display: inline-block; background: white; color: var(--primary); font-weight: 600; padding: 15px 30px; border-radius: 50px; text-decoration: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .hero-cta:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } .hero-decoration { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; z-index: 1; } .hero-circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .circle-1 { width: 200px; height: 200px; top: -100px; left: -50px; } .circle-2 { width: 100px; height: 100px; bottom: -20px; right: 100px; } .circle-3 { width: 50px; height: 50px; top: 50px; right: 50px; } .floating-coins { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); z-index: 1; } .coin { position: absolute; width: 60px; height: 60px; background: #f9c74f; border-radius: 50%; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0