代码:
<!DOCTYPE html>
<html lang="zh-cn">
<head>
???<meta charset="UTF-8">
???<title>Title</title>
???<style>
???????.adv {
???????????position: fixed;
???????????right: 10px;
???????????bottom: -20px;
???????????opacity: 0.8;
???????}
???????.close {
???????????position: relative;
???????????top: -315px;
???????????right: 50px;
???????????background-color: transparent;
???????????border: none;
???????????font-size: 20px;
???????????cursor: pointer;
???????}
???????.close:active {
???????????outline: none;
???????}
广告图:
效果图:
CSS固定定位实现右下角可关闭广告
原文地址:https://www.cnblogs.com/fantianlong/p/9949945.html