现在的位置: 首页 > 综合 > 正文

Flex组件篇:HRule和VRule

2013年08月31日 ⁄ 综合 ⁄ 共 337字 ⁄ 字号 评论关闭

有点类似于HTML标记中的HR,不过多了垂直标尺就更方便了。
创建方法

水平 <mx:HRule />

 

2. 垂直 <mx:VRule />

 

1.


其基本属性有:
color
颜色
shadowColor
阴影颜色
strokeWidth
厚度或宽度
hrulevrule使用样式

<mx:Style>

 

2. .thickRule {  strokeWidth: 5  }

3. HRule {  color: #123456; shadowColor: #654321  }

4. </mx:Style>

5. <mx:HRule styleName='thickRule' />

 

1.


PS:需要注意的是,对VRule定义widthHRule定义height都是无效的,应使用strokeWidth属性。

抱歉!评论已关闭.