当前位置:   article > 正文

弹框时背景变暗特效_axure弹出窗口使背景变暗

axure弹出窗口使背景变暗
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title></title>
  5. <title>网页特效-窗口特效-弹出窗口后网页背景变暗的效果</title>
  6. <meta http-equiv="content-Type" content="text/html;charset=gb2312">
  7. <style type="text/css">
  8. .black_overlay {
  9. display: none;
  10. position: absolute;
  11. top: 0%;
  12. left: 0%;
  13. width: 100%;
  14. height: 100%;
  15. background-color: black;
  16. z-index: 1001;
  17. -moz-opacity: 0.8;
  18. opacity: .80;
  19. filter: alpha(opacity=80);
  20. }
  21. .white_content {
  22. display: none;
  23. position: absolute;
  24. top: 25%;
  25. left: 25%;
  26. width: 50%;
  27. height: 50%;
  28. padding: 16px;
  29. border: 3px solid orange;
  30. background-color: white;
  31. z-index: 1002;
  32. overflow: auto;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <a href="javascript:void(0)" οnclick="document.getElementById('light').style.display='block'; document.getElementById('fade').style.display='block'">
  38. 点击这里打开窗口</a>
  39. <div id="light" class="white_content">
  40. <a href="javascript:void(0)" οnclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
  41. 关闭</a>
  42. <br>窗口内容
  43. </div>
  44. <div id="fade" class="black_overlay"></div>
  45. </body>
  46. </html>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/148384
推荐阅读
相关标签
  

闽ICP备14008679号