为什么word中设置的属性如段后间距,与xml中显示的是不一致的

迪 柳 0 Reputation points
2023-12-08T11:45:34.66+00:00

我从xml读取word数据发现与word中设置的值有差别,我想知道其中的对应关系,比如段后间距设置为一行,xml中显示的就是321

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
922 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 27,081 Reputation points Microsoft Vendor
    2023-12-11T01:52:27.94+00:00

    你好,

    据我所知,Word里面的一些属性在XML里面是不一定有的,XML主要是一种记录数据的语言,不会关注样式和布局的。

    就比如你说的间距,Word里面一般使用厘米为单位,但是在XML里面是没有厘米这个概念的,Word里面段落间距设置2里面,到了XML里面就是2个单位,这个单位大概率不会是厘米。

    希望这些信息对你有所帮助。


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.