1.案例-京东关闭广告
代码实现
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.box {
position: relative;
width: 74px;
height: 88px
border:1px solid #ccc;
margin: 100px auto;
font-size: 14px;
text-align: center;
color: black;
}
.box img {
width: 765px;
margin-top: 5px;
}
.close-btn {
position: absolute;
top: 9px;
left: 738px;
width: 14px;
height: 14px;
border: 5px solid gray;
line-height: 14px;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
}
</style>
</head>
<body>
<div class="box">
<img src="https://img20.360buyimg.com/pop/jfs/t1/200536/7/8877/79378/61445f6bE8fc391cb/1243192c86f8102b.jpg" >
<i class="close-btn">x</i>
</div>
&l