You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Java类文件的已有表格中添加新列并修正对齐异常

表格添加新列后对齐异常问题

接手同事的Java Web应用,需在现有表格中添加新列,但每次添加后表格的对齐方式都会出现错乱。添加前表格布局正常,添加后列对齐错位。

当前相关代码如下:

data="<table id='v_esTable' class='table table-bordered color-bordered-table inverse-bordered-table'><thead style=\"background-color: #064b87\">"
                 + "<tr><th class=\"text-white\">JEN No.</th >"
                    + "<th class=\"text-white\">Village Name</th>"
                       +"<th class=\"text-white\">Village Name</th>"
                
                    + "<th class=\"text-white\">Applicant Name</th>"
                    + "<th class=\"text-white\">Awardee Name</th><th class=\"text-white\">Relation To Awardee</th><th class=\"text-white\">Award Date</th>"
                    + "<th class=\"text-white\">Awardee No</th><th class=\"text-white\">Land Extent</th><th class=\"text-white\">Job Status</th>"
                    + "<th class=\"text-white\">ITI Dicipline</th><th class=\"text-white\">Diploma Dicipline</th><th class=\"text-white\">Engg. Dicipline</th>"

内容的提问来源于stack exchange,提问作者Newbie

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.07 10:25:34