思路:利用样式的显示和隐藏完成 ,display.none 隐藏元素display:block显示元素
实现代码:
<!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>关闭淘宝二维码</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.box {
position: relative;
width: 75px;
height: 89px;
margin: 50px auto;
text-align: center;
font-size: 12px;
color: #F4886F;
border: 1px solid #ccc;
}
.box img {
width: 60px;
margin-top: 5px;
}
.clos