Javascript jQuery、可选和文本对齐属性问题

Javascript jQuery、可选和文本对齐属性问题,javascript,jquery,html,css,Javascript,Jquery,Html,Css,在选择项目期间,无法将字符串居中放置在表行内 我尝试将JQuery事件与.css方法一起使用,但它不起作用 有修理它的主意吗 提前谢谢 选择之前: $('.flex-container').sortable({ axis: 'z', revert: true, forcePlaceholderSize: true, handle: '.move', }).disableSelection(); 在选择过程中: $('.flex-container').sort

在选择项目期间,无法将字符串居中放置在表行内

我尝试将JQuery事件与.css方法一起使用,但它不起作用

有修理它的主意吗

提前谢谢

选择之前:

$('.flex-container').sortable({
    axis: 'z',
    revert: true,
    forcePlaceholderSize: true,
    handle: '.move',
}).disableSelection();

在选择过程中:

$('.flex-container').sortable({
    axis: 'z',
    revert: true,
    forcePlaceholderSize: true,
    handle: '.move',
}).disableSelection();

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>

不看代码,我们帮不了什么忙。但是,假设您使用的是bootstrap.css,那么就可以在表单元格中使用
text center

<asp:tablecell runat="server" cssclass="text-center"></asp:tablecell>


共享您的代码pleaseTable是默认引导4表>我更新了css和jquery代码。共享您的代码pleaseTable是默认引导4表>我更新了css和jquery代码。我的回答对您有帮助吗?或者您正在寻找其他东西吗?您是否在表中应用了如下类:-……。我没有这样做。但我不需要引导网格系统。代码:这是可选事件的问题。我的回答对您有帮助吗?或者您正在寻找其他内容?您是否在表中应用了类似:-…的类。我没有这样做。但我不需要bootrap网格系统。代码:可选择事件的问题。