86 lines
1.7 KiB
HTML
86 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<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>Document</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
img {
|
|
width: 80px;
|
|
height: 96px;
|
|
position: fixed;
|
|
top: 0px;
|
|
}
|
|
|
|
.dialog {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #0000008c;
|
|
z-index: 9999;
|
|
display: none;
|
|
}
|
|
|
|
.center {
|
|
width: 40%;
|
|
background: #fff;
|
|
padding: 15px 10px;
|
|
border-radius: 4px;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.title {
|
|
height: 40px;
|
|
line-height: 40px;
|
|
border-bottom: 1px solid #ebe9e9;
|
|
|
|
}
|
|
|
|
.content {
|
|
padding: 20px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.footer .ok {
|
|
padding: 3px 15px;
|
|
background: #2a6bf4;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<img src="./hb.png" alt="">
|
|
</body>
|
|
<script>
|
|
function CreatedHB() {
|
|
var img = document.createElement("img");
|
|
img.src = "./hb.png"
|
|
console.log("img: ", img);
|
|
|
|
}
|
|
|
|
setInterval(() => { CreatedHb() }, 500)
|
|
</script>
|
|
|
|
</html> |