开发者

pseudo-classes in flex css

开发者 https://www.devze.com 2023-03-15 02:37 出处:网络
Does Flex CSS selectors support pseudo-classes? I want to use diffe开发者_运维技巧rent backgroundColor for a canvas based on mouse over and out. I am currently listening to MOUSE_OVER and MOUSE_OUT e

Does Flex CSS selectors support pseudo-classes?

I want to use diffe开发者_运维技巧rent backgroundColor for a canvas based on mouse over and out. I am currently listening to MOUSE_OVER and MOUSE_OUT events and changing the styleName property in the handler functions.

Is there a way I can specify canvasStyle:hover or something?


Only Flex 4 supports something called pseudo-selectors.

Pseudo-selectors use states defined in your composant.

See the official documentation for more info.

0

精彩评论

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