0
我有一個Flex 3應用程序的一些文本定義如下下劃線的Flex MX:鼠標懸停文字使用外部CSS
<mx:Text id="textbutton"
text="Link Text"
click="doSomething()"
styleName="linkText"
buttonMode="true"
useHandCursor="true"
mouseChildren="false"/>
和外部CSS
聲明如下:
.linkText {
/* text-decoration:underline;*/
color: #0000FF;
}
.linkText:hover {
text-decoration:underline;
}
它不似乎工作,但因爲文本不強調,當我將鼠標移到它上面。
有沒有辦法通過純粹通過CSS
做到這一點,還是我需要以編程方式捕獲鼠標事件並相應地設置樣式(似乎是矯枉過正)?