[英]jQuery, selectable and text-align property issue
I can't center string inside table row during selecting item. 在选择项目期间,我无法将字符串居中放在表格行中。
I try use JQuery events with .css method, but it not working. 我尝试将JQuery事件与.css方法一起使用,但无法正常工作。
Any idea for repair it? 有维修的想法吗?
Thanks in advance! 提前致谢!
Before select: 选择之前:
During selecting: 选择期间:
JQuery: JQuery的:
$('.flex-container').sortable({
axis: 'z',
revert: true,
forcePlaceholderSize: true,
handle: '.move',
}).disableSelection();
CSS: CSS:
th, tr {text-align: center;}
We can't help much without looking at the code. 如果不看代码,我们将无济于事。 But just assuming you are using bootstrap.css you can use text-center
class in your table cell. 但是只要假设您正在使用bootstrap.css,就可以在表格单元格中使用text-center
类。
<asp:tablecell runat="server" cssclass="text-center"></asp:tablecell>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.