速度速度速度速度是速度速度速度当时的阿迪师大速度速度速度速度是速度速度速度当时的阿迪师大速度速度速度速度是速度速度速度当时的阿迪师大速度速度速度速度是速度速度速度当时的阿迪师大速度速度速度速度是速度速度速度当时的阿迪师大 速度速度速度速度是速度速度速度当时的阿迪师大
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta content="telephone=no,email=no" name="format-detection">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no" name="format-detection">
<title>QRcode</title>
<style>
html, body, p {
padding: 0;
margin: 0;
}
.app {
min-height: 100vh;
background-color: #f5f5f5;
}
header {
position: relative;
text-align: center;
}
.bg {
background-color: #167eff;
height: 140px;
width: 100%;
position: absolute;
left: 0;
top: 0;
}
.logo {
margin-top: 20px;
height: 40px;
width: 40px;
border-radius: 50%;
object-fit: cover;
}
.qrcode {
position: relative;
margin-top: 80px;
width: 150px;
height: 150px;
object-fit: contain;
z-index: 10;
padding: 15px;
border-radius: 20px;
background-color: #fff;
}
main {
padding: 0 20px;
box-sizing: border-box;
}
p {
font-size: 14px;
line-height: 16px;
padding: 8px 0;
}
.title {
max-width: 200px;
color: #167eff;
}
.desc1 {
color: red;
}
.desc2 {
color: #f18539;
}
.input-box {
display: flex;
align-items: center;
background-color: #fff;
justify-content: space-around;
padding: 0 15px;
box-sizing: border-box;
border-radius: 4px;
}
input {
width: 100%;
outline: none;
border: none;
height: 36px;
padding: 0;
background-color: #fff;
}
button {
border: none;
padding: 0;
margin: 0;
min-width: 50px;
font-size: 14px;
line-height: 28px;
color: #fff;
border-radius: 4px;
}
.copy_btn1 {
background-color: #f18539;
}
.copy_btn2 {
background-color: #167eff;
}
</style>
</head>
<body>
<script>
function copyOne () {
var inputElement = document.querySelector('#input1')
inputElement.select()
document.execCommand('copy')
alert('复制成功')
}
function copyTwo () {
var inputElement = document.querySelector('#input2')
inputElement.select()
document.execCommand('copy')
alert('复制成功')
}
</script>
<div class="app">
<header>
<div class="bg">
<img class="logo" src="https://img0.baidu.com/it/u=2028699067,366536277&fm=26&fmt=auto" alt="" srcset="">
</div>
<img class="qrcode" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Ff26f5ed0d000c3413c9a4250f2c22bcb86a9494e2b2a-Gw0bYT_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1640839146&t=72f41df3bcd80519aadc11c998ee3ebd" alt="" srcset="">
</header>
<main>
<p class="title">深刻的还是决定还是觉得很好尽快速度速度加快建速度速度</p>
<div class="input-box">
<input id="input1" type="text">
<button class="copy_btn1" onclick="copyOne()">复制</button>
</div>
<p class="desc1">速度速度速度速度速度速度点</p>
<div class="input-box">
<input id="input2" type="text">
<button class="copy_btn2" onclick="copyTwo()">复制</button>
</div>
<p class="desc2">速度速度速度速度速度速度点</p>
</main>
</div>
</body>
</html>