开发者

How do I get PIE (CSS3 for IE) working?

I am lost at using PIE for IE ...

http://jsfiddle.net/XBzvL/

div {
  background: red;
  color: #fff;
  border-radius: 10px;
  behaviour: url("http://jiewmeng1.ko开发者_如何学运维dingen.com/playground/PIE.htc");   
}

why doesn't it work?


You need to have the HTC on the same site that the page is sitting on. There's some security stuff that keeps IE from loading HTCs from different domains. (This means your stuff probably won't work in jsFiddle.) The domain name has to be identical, and IIRC even the protocol has to match.

You'll also need to configure your server to transfer the HTC with a MIME type of "text/x-component". (This may have already been done for you.)

Just noticed, too...you'll need to change "behaviour" to "behavior". :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜