抖音上小姐姐你喜欢我html代码,表白

代码语言:html

所属分类:表白

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>小姐姐</title>
    <style>
        body {
            padding: 0;
            margin: 0;
        }
        #d1 {
            float: left;
            position: relative;
            width: 100%;
            height: 100vh;
            background-color: rgb(241, 235, 235);


        }
        #p1 {
            width: 100%;
            display: table;
            margin-top: 10%;

            text-align: center;
            font-size: 2em;
        }
        button {
            width: 100px;
            height: 40px;
            font-size: 100%;
            /* border-radius: 2%; */
        }
        #b1 {
            position: absolute;
            left: 10%;
            top: 30%;
        }
        #b2 {
            position: absolute;
            left: 50%;
            top: 30%;
        }

    </style>
</head>

<body>
    <div id="d1">
        <p id="p1">
            小姐姐你喜欢我吗?
        </p>
        <button id="b1">喜欢</button>
        <button id="b2">不喜欢</button>
    </div>
    <script>
        var x1 = document.getElementById("d1").clientWidth;
        var y1 = do.........完整代码请登录后点击上方下载按钮下载查看

网友评论0