3

我不得不写一些文档。我在 MS Word 中编写了每一页,然后将每个 *.docx 保存为 htm 文件。我正在使用“HTML Help Workshop”(来自微软)来编译一个 chm 文件。

我能够成功创建一个 chm 文件,但问题是并非 chm 文件中的所有图像都显示出来。我尝试将 *.chm 文件反编译到另一个文件夹中,并在 Web 浏览器中打开每个 .htm 文件。所有图像均正确显示。

那为什么它们不显示在chm文件中。奇怪的是,只有其中一些没有显示出来。我检查了图像格式是否导致问题,但所有图像的格式相同。我检查了文件命名是否有问题,但是所有图像在其相应文件夹中的名称都类似于 image[001-100].jpg。

关于出了什么问题的任何想法?

4

1 回答 1

6

HTML Help Workshop (HHW) is known to have problems with the HTML generated by Word (or better put: Word generates terrible HTML). Some versions put VML coding around the IMG tags that HHW cannot handle.

Possible solutions:

  • In Word: Deselect the option 'Rely on VML for displaying graphics in browsers' (Tools > Options > General > Web Options)
  • In Word: Save as 'filtered HTML'.
  • In HHW: Manually add the images to the project's [FILES] section.

Let me know if any of this helps.

More information can be found in the HTML Help 1.X FAQ

于 2010-08-10T12:18:11.993 回答