Вопрос

I'm trying to use PIE.htc (with IE8) to get elements displaying with border radius etc.

Is there a way to apply behavior: url(/path/to/PIE.htc); to all the elements in body tag in one rule or do I have to write the rule for every single element I want to use PIE.htc on?

Это было полезно?

Решение

You do have to specify the PIE behavior for each CSS element that needs the PIE help, but you can use one rule to do it. For example, if you have 3 classed divs and every image in the main wrapper that need PIE's assistance to render CSS3 elements in IE8:

div.callout, div.special, div.best, #wrapper img { behavior: url(/path/to/PIE.htc); }
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top