用的地方很少,簡單的小知識javascript
- <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>