0

I would like to include PIE.htc in my Rails application to make CSS3 easier for IE. I can't seem to figure out how to include the PIE.htc file.

I tried to include PIE.htc in my assets folder as well as assets/stylesheets folder, but I no routes matching error.

How do I include PIE.htc with rails asset pipeline?

4

1 回答 1

0

Try the solution in this post: Using PIE.htc in rails

Basically, it should be:

behavior: url(/assets/PIE.htc);

Also, if you want to be completely sure that the PIE.htc file is being loaded, open it and add an alert as so:

<script type="text/javascript">
alert("PIE works);

If the file if being loaded, a popup should appear showing the message.

于 2013-04-14T16:39:52.047 回答