Path of HTC components in web projects

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.