頁面小知識遮罩層

用的地方很少,簡單的小知識javascript

 

  
  
  
  
  1. <script src="../../../js/jquery.blockUI.js" type="text/javascript"></script> 
//=========遮罩層=====================
            $("#test").click(function() {
                $.blockUI({ message: $(".editForm"), css: { width: '600px', "top": ($(window).height() - 200) / 2 + "px","left": ($(window).width() - 600) / 2 + "px"} });
            });
            $("#no").click(function() {
  
                $.unblockUI();
                return false;
            });
            //===============add==============
<div class="editForm" style="display: none; cursor: default">
....................
</div>
相關文章
相關標籤/搜索