代码:
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.adv {
/*调整广告图位置*/
position: fixed;
right: 10px;
bottom: -20px;
/*透明度 使得可以看见下面内容*/
opacity: 0.7;
}
.close {
/*关闭按钮样式*/
position: relative;
top: -315px;
right: 50px;
background-color: transparent;
border: none;
font-size: 20px;
cursor: pointer;
}
.close:active {
outline: none;
}
广告图:
效果图: