[英]Jquery BlockUI element blocking
I am trying to block certain part of the page.I am following the http://jquery.malsup.com/block/#element tutorial, but i am not able to map the element . 我正在尝试屏蔽页面的某些部分。我正在遵循http://jquery.malsup.com/block/#element教程,但无法映射该元素。
My js: 我的js:
$('div.repoDisplay').blockUI({ message: '' ,overlayCSS: { backgroundColor: '#fff' }});
My html : 我的html:
<div class="container-sc" style="display: table;">
<div id='repoDisplay' >
<div style="display: table-cell;width:150px">
\\\\\\\\\\\
</div>
</div>
<div style="display: table-cell;padding:10px;width:85%"">
{{outlet}}
</div>
</div>
But it is showing uncaught type error:undefined in my js. 但是它显示了未捕获的类型错误:我的js中未定义。
Thanks for the help 谢谢您的帮助
$.blockUI()
is using to block whole page, If you want to block element section then use block()
function only, and use right <selector>
repoDisplay is id
so you need to use with #
, see below code $.blockUI()
用于阻塞整个页面,如果要阻塞元素部分,则仅使用block()
函数,并使用正确的<selector>
repoDisplay是id
因此您需要与#
一起使用,请参见以下代码
$('div#repoDisplay').block({
message: '' ,
overlayCSS: { backgroundColor: '#fff' }
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.