HTML Help Workshop - Is it possible to use CSS or JavaScript within a .CHM file?

折月煮酒 提交于 2019-12-08 01:44:28

问题


I'm in the process of creating .chm files and was curious to know if these options are available?


回答1:


Of course you can use CSS. JavaScript not in all cases. See HTMLHelp - Linking.

Make sure your design.css is inside you project level structure and added to the [FILES] section of your HHP project file. You can open this *.hhp file with e.g. Notepad++ to add files. If the files are listed in the [FILES] section the compiler includes them to the CHM file.

[FILES] 
welcome.htm 
design.css 
First_Steps\download.htm 
First_Steps\starting_program.htm 
How_to_extend\extend_menu.htm 
How_to_extend\power_function.htm 
images\gui_screenshot.jpg


来源:https://stackoverflow.com/questions/43942102/html-help-workshop-is-it-possible-to-use-css-or-javascript-within-a-chm-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!