亲爱的老师,我来交作业了,麻烦您帮我检查一下呢!⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄

来源:2-12 自由编程

im镇辉

2021-08-11 14:41:18

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>确定要删除吗?</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        button {}
        html {
            width: 100%;
            height: 100%;
        }
        .box {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgb(76, 76, 76);
        }
        .inner {
            width: 50%;
            background-color: white;
            border-radius:5px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            padding: 5%;
        }
        .inner p{
            margin-bottom: 10%;
        }
        .btn {
            width: 45%;
            padding: 3%;
             border: none;
            border-radius:5px;
             background-color: rgb(157, 157, 157);
             color: rgb(255, 255, 255);
             
        }
        .btn-curror{
            background-color: rgb(0, 90, 181);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner">
            <p>确认要删除吗?</p>
            <button class="btn btn-curror">确认</button>
            <button class="btn">取消</button>
        </div>
    </div>
</body>
</html>


写回答

1回答

好帮手慕慕子

2021-08-11

同学你好,代码实现是对的,很棒!!!祝学习愉快~

0

0 学习 · 15276 问题

查看课程