|
@@ -741,6 +741,12 @@ public class ExcelTabController extends BladeController {
|
|
|
Document doc = Jsoup.parse(htmlString);
|
|
|
int maxCol = doc.select("Col").size();
|
|
|
Element table = doc.select("table").first();
|
|
|
+ // 显式设置表格样式,保持边框一致性,有些表的边框会变粗,统一设置
|
|
|
+ if (table != null) {
|
|
|
+ table.attr("style", "border-collapse: separate; border-spacing: 0;");
|
|
|
+ // 或者根据原始样式进行设置
|
|
|
+ table.attr("style", "border-collapse: collapse; border: 1px solid #000;");
|
|
|
+ }
|
|
|
Elements hc = doc.select("hc-form-select-search");
|
|
|
if (hc.size() >= 1) {
|
|
|
for (int i = 0; i < hc.size(); i++) {
|