js+css布局实现未满18岁验证器代码
代码语言:html
所属分类:布局界面
代码描述:js+css布局实现未满18岁验证器代码
代码标签: js css 布局 未满 18 岁 验证器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; background: radial-gradient( 1200px 600px at 10% 10%, rgba(2, 6, 23, 0.65), transparent 15% ), radial-gradient( 800px 400px at 90% 90%, rgba(11, 30, 60, 0.5), transparent 10% ), linear-gradient(180deg, #05060a, #061226 60%); color: #e9f0ff; display: flex; align-items: center; justify-content: center; padding: 28px; } /* Container */ .wrap { width: 100%; max-width: 980px; background: linear-gradient( 180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01) ); border-radius: 16px; padding: 22px; box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6); display: flex; gap: 20px; align-items: stretch; } /* Visual side */ .left { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 12px; } .brand { display: flex; align-items: center; gap: 14px; } .badge { width: 72px; height: 72px; background: linear-gradient(135deg, #06b6d4, #7c3aed); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: Orbitron, monospace; font-weight: 700; color: #041029; font-size: 26px; } .site-title { font-family: Orbitron, monospace; font-size: 20px; letter-spacing: 1px; } .tag { color: rgba(233, 240, 255, 0.8); font-size: 14px; } .hero-title { font-size: 28px; margin: 0; font-weight: 700; } .hero-desc { color: rgba(233, 240, 255, 0.8); max-width: 60ch; } /* Right: verification panel */ .panel { width: 360px; min-width: 260px; background: linear-gradient( 180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01) ); padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 12px; } .lang-switch { display: flex; gap: 8px; justify-content: flex-end; } .lang-btn { background: transparent; border: 1px solid rgba(255, 255, 255, 0.221); padding: 6px 8px;.........完整代码请登录后点击上方下载按钮下载查看
网友评论0