flash、dialog

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" >
    <style>
        .flash {
            width: 14rem;
            /*width: auto;*/
            max-width: 21rem;
            font-size: 1rem;
            background: grey;
            word-wrap: break-word;
            padding: 1rem 0.7rem;
            border-radius: 0.7rem;
            margin: 0.7rem;
            opacity: 0.8;
            color: white;
            z-index:999;
            text-align: center;
            position: absolute;
            top: 0;
            right: 0;
        }

    </style>
    <script>
        // !function () {
        //     var html = document.documentElement;
        //     var setFontSize = function () {
        //         var width = html.offsetWidth;
        //         html.style.fontSize = width / 6.4 + 'px';
        //     };
        //     var timer;
        //     var setDelay = function () {
        //         return clearTimeout(timer), (timer = setTimeout(setFontSize, 150));
        //     }
        //     window.addEventListener('pageshow', function (evt) {
        //         return evt.persisted && setDelay();
        //     });
        //     window.addEventListener('resize', setDelay);
        //     setFontSize();
        // }();

    </script>
</head>
<body>
<div class="flash">恭喜,注冊(cè)成功!</div>


<div class="modal" tabindex="-1" style="display: block;background: grey;opacity: 0.9">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Modal title</h5>
                <button type="button" class="close">
                    <span>&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Email address</label>
                        <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">Password</label>
                        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
                    </div>
                    <button type="submit" class="btn btn-primary">Submit</button>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
    </div>
</div>



</body>
</html>
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容