我有一个在 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/