Is it possible to set fill and stroke colors and opacity on VML paths using CSS?
问题 For example, I'd like to do something like the following: .myRedPath { fillcolor: red; } ... <v:path class="myRedPath" v="..."/> to fill my paths with a red color. Is this possible with the color and opacity of the fill and stroke attributes for VML elements? If so, how? 回答1: As mentioned in other answers, you may use DHMTL behaviors to apply any style specified in your style sheet to your VML element as behaviors are supported from IE5 to IE9. Start by creating a HTC file, eg: vmlcss.htc: