What is difference between .htc and .js file?

前端 未结 3 830
遥遥无期
遥遥无期 2020-12-23 13:45

What is difference between .htc and .js file? Can we convert any .htc file to a .js file?

The problem is if we use htc to make png fixes, then we add htc to css fil

相关标签:
3条回答
  • 2020-12-23 14:17

    A htc-file is a behaviour-file, have a look at MSDN

    0 讨论(0)
  • 2020-12-23 14:23

    Technically, you can use conditional comments to allow the code to validate.

    http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx

    A hack is a hack, it's just weird that MS made this hack in a way that it's a valid hack.

    Now, something else to consider - are you using a JavaScript library? Then you should be using the library to do this functionality, which would eliminate the need for the HTC (which needs JavaScript enabled to run).

    0 讨论(0)
  • 2020-12-23 14:32

    From the Microsoft HTC Reference

    0 讨论(0)
提交回复
热议问题