BlockUI会强制所有元素居中 [英] BlockUI forces all elements to center

查看:177
本文介绍了BlockUI会强制所有元素居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我尝试了这么多,因为jquery blockui插件强制他们居中。

  $。blockUI({message:$('#popup'),css:{text-align:'left'}}); 

http://www.malsup.com/jquery/block/#demos

解决方案

你应该使用camelCase synthax也许它只是足够:

  $。blockUI({message:$('#popup') ,css:{textAlign:'left'}}); 

或使用引号:

  $。blockUI({message:$('#popup'),css:{text-align:'left'}}); 

也许你必须使用! c>

  css:{textAlign:'left!important'} 
pre>

How can I re-force my elements back to left align as jquery blockui plugin is forcing them to center,

I tried this so far,

$.blockUI({ message: $('#popup'), css: { text-align: 'left' } });

http://www.malsup.com/jquery/block/#demos

解决方案

You should use camelCase synthax maybe it's just enough:

$.blockUI({ message: $('#popup'), css: { textAlign: 'left' } });

Or using quotes:

$.blockUI({ message: $('#popup'), css: { "text-align": 'left' } });

Maybe you would have to force it using !important

css: { textAlign: 'left !important' }

这篇关于BlockUI会强制所有元素居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆