1px vs thin,IE vs Excel问题

Caf*_*eek 5 css excel internet-explorer border width

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

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

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

我怎么能让他们同时显示一个1px的边框,因为它看起来很可怕,边框是2px.

Arn*_*sss 6

将excel文件保存到html genrates 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;}
Run Code Online (Sandbox Code Playgroud)

.5作为法线显示,1.0作为粗线显示所以我认为将te设置为.5pt应该有效...