他丫丫的,不行。该怎么写,只遮挡指定 div。目前只能整个页面遮挡,先睡了,明天再说~
附代码片段:
$.ajax({
type: "POST",
url: "Ajax/ItemHandler.ashx",
data: "Page=" + Page,
beforeSend: function () {
$('#my_div').blockUI();
},
<div id="my_div" style="width: 100%; min-height: 280px;">
<table class="mytable" id="TableItemList" width="700px">
哎
这是官网的示例
// use a different message
$.blockUI({ message: 'Hold on!' });
...
// use a different message
$('#myDiv').block({ message: 'Processing...' });
UI两个单词看歪了!!
<!DOCTYPE html> <html> <head> <style> p { margin-left:10px; color:blue; width:200px; cursor:pointer; } span { color:red; cursor:pointer; } div.abs { width:50px; height:50px; position:absolute; left:220px; top:35px; background-color:green; cursor:pointer; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div id="result">Click an element.</div> <p> This is the best way to <span>find</span> an offset. </p> <div class="abs"> </div> <script> $("*", document.body).click(function (e) { var offset = $(this).offset(); e.stopPropagation(); $("#result").text(this.tagName + " coords ( " + offset.left + ", " + offset.top + " )"); }); </script> </body> </html>
改造一下。