js+css实现一个中国亲戚关系称谓称呼计算器代码

代码语言:html

所属分类:其他

代码描述:js+css实现一个中国亲戚关系称谓称呼计算器代码

代码标签: js 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>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 24px;
            margin-bottom: 8px;
        }
        
        .header p {
            opacity: 0.9;
            font-size: 14px;
        }
        
        .main {
            padding: 25px;
        }
        
        .result-box {
            background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
            border: 2px solid #ffc107;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .result-label {
            color: #856404;
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .result-chain {
            color: #666;
            font-size: 16px;
            margin-bottom: 10px;
            min-height: 24px;
        }
        
        .result-title {
            color: #e74c3c;
            font-size: 36px;
            font-weight: bold;
            min-height: 45px;
        }
        
        .section {
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 14px;
            color: #888;
            margin-bottom: 10px;
            padding-left: 5px;
            border-left: 3px solid #667eea;
        }
        
        .btn-group {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .btn-group.two-col {
            grid-template-columns: repeat(2, 1.........完整代码请登录后点击上方下载按钮下载查看

网友评论0