CHM项目的奇怪行为

发布于 2024-12-21 16:24:48 字数 320 浏览 4 评论 0原文

任何人都可以帮助我解决我基于 CHM 的项目遇到的奇怪问题吗?

我获取了一个现有的 CHM 文件并使用 WinCHM 解构了该文件。之后我添加了一些新页面并编译了该项目。 CHM 文件已创建,到目前为止一切看起来都很好。

之后我将整个文件夹(原始 CHM 文件被解构的地方)放入 SVN 中。当我下次打开该文件夹时,我发现 html 页面的所有原始格式都丢失了。

我似乎找不到原因。 css 文件没问题,我根本没有改变。我知道对于信息如此之少的你们来说,找到解决方案(或确定问题)可能并不容易。

但你们至少能告诉我问题可能是什么吗?我们谈论的是可能性,仅此而已。

Anybody can help me with a strange problem I am having with my CHM based project?

I took an existing CHM file and deconstructed the file using WinCHM. After that I added some new pages and compiled the project. The CHM file was created and everything looked great so far.

After that I put the entire folder (where the original CHM file was deconstructed) into SVN. When I opened the folder the next time I see that all the original formatting from the html pages is lost.

I cant seem to find a reason why. The css files are okay and i have not changed that at all. I know that finding a solution to this (or determining the problem) may not be easy for you guys with so little information.

But can you guys at least tell me what the problem might be?? We are talking possibilities that is all.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傻比既视感 2024-12-28 16:24:48

不知何故,您在运行时位于不同的目录中,因此 CHM 编译器无法正确理解 CHM 根目录?例如,您现在通过快捷方式运行批处理文件,而不是更改到正确的目录? (通过 cmd.exe 或直接链接?)y

如果不是这样,请尝试使用其他 CHM 查看器查看它(在非 Windows 上更容易,但例如也存在适用于 Windows 的 kchmviewer 版本)。有时他们会提供更多错误信息(但有时仅在控制台窗口中),

然后用到底出了什么问题来更新您的问题。

Somehow you are in different directories when running, so CHM compiler doesn't get a proper understanding of the CHM root ? E.g. you now run a batchfile via a shortcut instead of changing to the proper dir ? (either by cmd.exe or direct link?)y

If that is not it, try looking at it with some other CHM viewer (easier on non Windows, but e.g. kchmviewer builds for windows exist too). Sometimes they give more error information (but sometimes only in the console window)

Then update your question with what exactly went wrong.

流殇 2024-12-28 16:24:48

答案如此简单,令我惊讶的是我没有想到这一点。样式表、脚本和图像目录与 html 文件不在同一文件夹中。这些应该位于同一文件夹中。

The answer is so simple that I am surprised that it did not occur to me. The directories stylesheets, scripts and images are not in the same folder as the html files. These should be in the same folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文