There are two methods to reference the HTC component in an HTML file. The method mentioned here is applicable to using the labeled behavior reference in a CSS file. When using this method to reference the HTC component, the path of the HTC file to be specified in the CSS file does not depend on the path of the HTML file to reference the file, but on the path of the CSS file, that is, the path of the HTC file relative to the CSS file. If multiple HTC components are to be referenced in the project, you can organize the WEB Project as follows:
Folder |
Store content |
Projectname/inlcudes/CSS |
Store CSS files in the project |
Projectname/shortdes/HTC |
Store HTC files in the project |
Projectname/Media/jpg |
Save jpg and JPEG files in the project |
Projectname/Media/GIF |
Save GIF files in the project |
Projectname/Media/SWF |
Store SWF files in the project |
...... |
...... |
Such a project organization method allows you to easily find files of a specific file type and make it easier to write relative paths.