# 为什么我用word文档转换成html格式后表格边框不见了,从HTML页面转换到MS Word 2003时，表格边框无法正确显示(Table borders don't display properly...

I've got a bit of a complicated set up. I specialise in XSLT which I write for 3rd party system. All CSS looks fine in the browser. Now that system provides a button that converts my generated HTML into MS Word 2003.

However, table borders don't convert as they appear in a Browser. There are lots of tables and they have different borders setup. For example there is one that uses only outside border and no borders inside it. When converting to MS Word, a table appears with ALL the borders in between cells. Which I don't want.

I've tried search the Internet, but didn't come across anything useful. Maybe there are tips or tricks on how to set up tables borders so it's understood properly by MS Word.

The third party said the following: "The system just passes the HTML created through the converter it finds in the installed version of Word".

I would really appreciate any tips and help!

I was trying to get a table with only the outer border and no inside ones. I've been trying the following HTML:

However, in the Word that table appears with both outer and inner borders, not just with outer border as I was trying to get it.

Well, that is what border does. Hmm. You say inline CSS doesn't get picked up, so I guess both this:

or surrounding the table with a

won't work? Those would be the most elegant solutions.

If all that fails, why not put the table into a table?

it's a horrible practice to use in 2010 from a web design point of view, but if it's the only workaround so you can import the page correctly, maybe it's necessary. I'm pretty sure however that some form of CSS must work. Maybe a different notation or something. But I'm no Word HTML expert.

...

...

Selection.TypeText Text:="top of page"

Else

Selection.TypeParagraph

Selection.TypeText Text:="not top of page"

End If

...

word-break: break-word;

}

...

...

...

...

...

Drop empty paras

Logical emphasis

Output XHTML

Word 2000

...

...

09-02 96
07-03 3635

### “相关推荐”对你有帮助么？

• 非常没帮助
• 没帮助
• 一般
• 有帮助
• 非常有帮助

©️2022 CSDN 皮肤主题：1024 设计师：我叫白小胖

1.余额是钱包充值的虚拟货币，按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载，可以购买VIP、C币套餐、付费专栏及课程。