<!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>×</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>
flash、dialog
最后編輯于 :
?著作權(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ù)。
【社區(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)容
- FreeMusic新增功能 1.按住Home鍵,back鍵,或recent鍵 彈出提示框 難點(diǎn): 1.當(dāng)應(yīng)用程序退...
- 在Android開(kāi)發(fā)中,我們經(jīng)常會(huì)需要在Android界面上彈出一些對(duì)話框,比如詢問(wèn)用戶或者讓用戶選擇。這些功能我...
- Dialog對(duì)話框是android常用的基礎(chǔ)視圖組件之一,本文總結(jié)了對(duì)話框常用的幾種樣式,以及自定義視圖和帶動(dòng)畫(huà)效...
- (二十五)從心再出發(fā) 軍旗需要住一周的院,小艾每天都在醫(yī)院里陪著孩子,時(shí)光每天派人給娘倆送飯,自己也抽空過(guò)來(lái)陪小艾...