简单的生日html

2023-03-22 10:48:27 浏览数 (1)

以下是一个简单的生日祝福HTML代码:

代码语言:javascript复制
html
<!DOCTYPE html>  
<html lang="en">  
<head>  
    <meta charset="UTF-8">  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <title>Happy Birthday</title>  
    <style type="text/css">  
        body {  
            font-family: Arial;  
        }  
  
        .container {  
            width: 300px;  
            padding: 16px 48px;  
            background-color: white;  
            margin: 100px auto 60px;  
            border: 1px solid black;  
            box-shadow: 8px 10px 5px #ccc;  
            display: flex;  
            justify-content: center;  
            align-items: center;  
        }  
  
        .card1 {  
            position: relative;  
            top: -32px;  
            left: 50%;  
            transform: translate(-100%);  
            opacity: 0;  
            transition: opacity 1s ease-in-out;  
        }  
  
        .card1:before {  
            content: "XXXXXX";  
            font-size: 36px
z-index: 2;  
            position: absolute;  
            right: 12px;  
            bottom: 2px;  
            cursor: pointer;  
            opacity: 1;  
            transition: opacity 2s ease-in-out;  
        }  
  
        .messageTextArea {  
            overfloPI / 6) * 16 - 90   20;  
          }

0 人点赞