css - 1px vs 瘦,IE vs Excel 问题

标签 css internet-explorer excel width border

我有一个在 IE 和 Excel(用于报告)中呈现的 html 表格

如果我将 border-width 设置为 thin,它在 IE 中显示 2px 边框,在 Excel 中显示 1px 边框。

但是,如果我将它设置为 1px,它在 IE 中显示 1px 边框,在 Excel 中显示 2px 边框(???)。

我怎样才能让它们同时显示 1px 边框,因为 2px 边框看起来很糟糕。

最佳答案

将 excel 文件保存为 html 生成 CSS,如下所示:

.xl32
{mso-style-parent:style0;
border-top:.5pt solid windowtext;
border-right:1.0pt solid windowtext;
border-bottom:1.0pt solid windowtext;
border-left:.5pt solid windowtext;}

.5显示为普通线,1.0显示为粗线 所以我想将 te 设置为 .5pt 应该可行...

关于css - 1px vs 瘦,IE vs Excel 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6780044/

相关文章:

css - IE中 "letter/word-spacing: initial"相当于什么

java - 添加填充效果以使用 apache poi 创建 excel

excel - 使用 Excel 中的 VBA 打开 Outlook 邮件 .msg 文件

css - 将复选框与标签对齐

javascript - 在ng-repeat中仅增加一个元素的行高?

html - 如何创建一个与另一个相似的 UL 菜单

css - Internet Explorer 中的 iFrame 缩放问题

jquery - 当另一个 div 在 IE 中向下滑动时,DIV 没有被按下

javascript - 使输入字段使用特定的键盘?有可能吗?

vba - IE 自动化 - Excel VBA ...加载网站后遇到错误