代码:
<!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;
}

广告图:

CSS固定定位实现右下角可关闭广告

 




效果图:

CSS固定定位实现右下角可关闭广告

 


 
                    
            
                

相关文章:

  • 2021-11-22
  • 2022-02-17
  • 2021-05-11
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
猜你喜欢
  • 2021-04-21
  • 2022-03-08
  • 2021-10-27
  • 2021-11-24
  • 2021-07-16
  • 2021-10-31
  • 2021-09-12
相关资源
相似解决方案