在选择元素时,我无法将字符串置于表格行的中心。
我尝试将 JQuery 事件与 .css 方法一起使用,但它不起作用。
有修复它的想法吗?
提前致谢!
选择前:
在选择期间:
JQuery:
$('.flex-container').sortable({
axis: 'z',
revert: true,
forcePlaceholderSize: true,
handle: '.move',
}).disableSelection();
CSS:
th, tr {text-align: center;}
最佳答案
如果不查看代码,我们帮不上什么忙。但假设您使用的是 bootstrap.css,您可以在表格单元格中使用 text-center
类。
<asp:tablecell runat="server" cssclass="text-center"></asp:tablecell>
关于javascript - jQuery,可选和文本对齐属性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46375371/