有點(diǎn)類似于
HTML
標(biāo)記中的
HR
,不過多了垂直標(biāo)尺就更方便了。
創(chuàng)建方法
水平
?
<
mx
:
HRule
?
/>
2. 垂直 ? < mx : VRule ? /> ? ?
其基本屬性有:
color
顏色
shadowColor
陰影顏色
strokeWidth
厚度或?qū)挾?/span>
對(duì)
hrule
和
vrule
使用樣式
<
mx
:
Style
>
2.
.
thickRule
?
{
??
strokeWidth
:
?
5
??
}
3.
HRule
?
{
??
color
:
?
#123456;
?
shadowColor:
?
#654321
??
}
4.
</
mx
:
Style
>
5. < mx : HRule ? styleName = 'thickRule' ? />
PS
:需要注意的是,對(duì)
VRule
定義
width
和
HRule
定義
height
都是無效的,應(yīng)使用
strokeWidth
屬性。