MS Word 2010 - 保存为html时,编号列表项之间的行间距不保留 [英] MS Word 2010 - Line spacing between numbered list items is not preserving when saving as html

查看:79
本文介绍了MS Word 2010 - 保存为html时,编号列表项之间的行间距不保留的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过
此方法
来自MSDN或这一个从在线到
SUCCESSFULLY 在WORD 2010文档中的编号列表项之间创建更多行间距,但出于某些原因,当我将文档保存为"HTML Filtered"时行间距保持与我将其更改为新间距之前的行间距相同。
另一方面,正如我们所知,如果我们通过点击"Shift + ENTER"手动更改WORD doc中的行间距。在每个列表项之后,当我将文档保存为"Html
Filtered"时,将保留这些手动创建的列表项之间的新行间距。


但我不这样做想要手动更改行间距(通过在列表项后继续按"Shift + ENTER")每次我需要将文档保存为Html Filtered。我希望它能保留HTML中的行间距,当上面提到的MSDN文章描述
的方法用于WORD文档时。请帮忙。谢谢.Nam

解决方案

你好,


第二个链接无效,我无法通过更改行间距来重现您的问题。


之前:多个  1.15



之后:多个3



如果使用"Shift + ENTER"会解决这个问题,你可以编写一些代码来获得与击中Shift + enter相同的效果


请创建一个列表并插入如下代码:


 Sub Macro1()
ActiveDocument.Content.Characters.First.Select
Selection.Collapse(wdCollapseStart)
For i = 1 To ActiveDocument.Content.ListFormat.CountNumberedItems(Level: = 1)
调用SE
下一个
结束子
子SE()
Selection.MoveEnd单位:= wdLine,计数:= 1
i =选择.Characters.Count
Selection.Collapse(wdCollapseStart)
Selection.MoveRight Unit:= wdCharacter,Count:= i - 1
Selection.TypeText Text:= Chr(11)
Selection.MoveDown单位:= wdLine,计数:= 1
结束子

然后我们可以得到与我点击的结果相同的结果+在结束时输入每一行


问候,


Celeste




I tried this method from MSDN or this one from online to SUCCESSFULLY create more line spacing between numbered list item in a WORD 2010 document but for some reasons when I save the document as "HTML Filtered" the line spacing remains the same as it was before I changed it to the new spacing. On the other hand, as we know, if we manually change the line spacing in WORD doc by hitting "Shift+ENTER" after each list item, then the these manually created new line spacing between list items are preserved when I save the document as "Html Filtered".

But I don't want to manually changing line spacing (by keep hitting "Shift+ENTER" after a list item) every time I need to save the doc as Html Filtered. I would like it to preserve the line spacing in HTML as well when the method described by above mentioned MSDN article is used on a WORD doc. Please help. Thanks..Nam

解决方案

Hello,

The 2nd link is invalid and I failed to reproduce your issue by changing line spacing.

Before: Multiple 1.15

After: Multiple 3

If using "Shift+ENTER" would fix the issue, you could write some code to get the same effect as hitting shift+enter

Please create a list and insert code as below:

Sub Macro1()
ActiveDocument.Content.Characters.First.Select
Selection.Collapse (wdCollapseStart)
For i = 1 To ActiveDocument.Content.ListFormat.CountNumberedItems(Level:=1)
Call SE
Next
End Sub
Sub SE()
    Selection.MoveEnd Unit:=wdLine, Count:=1
    i = Selection.Characters.Count
    Selection.Collapse (wdCollapseStart)
    Selection.MoveRight Unit:=wdCharacter, Count:=i - 1
    Selection.TypeText Text:=Chr(11)
    Selection.MoveDown Unit:=wdLine, Count:=1
End Sub

Then we could get the same result as i hit shift+enter at the end of each line

Regards,

Celeste


这篇关于MS Word 2010 - 保存为html时,编号列表项之间的行间距不保留的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆