思路:把页面中所有的标签放到一个div中,然后再再最后添加一个空div标签fadeDiv,用fadeDiv遮挡body使fadeDiv渐现

    <title></title>
    <script src="../jquery132min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            var p = $("body");
            var offset = p.offset();
            $("#fadeDiv").css({ top: offset.top, left: offset.left, width: $("#bodyDiv").width(), height: $("body").height(), backgroundColor: "white", opacity: 1, position: "absolute" });
            if (jQuery.isReady) {
                $("#fadeDiv").fadeOut(1000);
            }
        })
    </script>
   </head>
<body>
    <form >
    </div>
    </form>
</body>
</html>

相关文章:

  • 2021-12-13
  • 2021-11-12
  • 2021-08-15
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案