flex htmlText属性和Label设置鼠标手形状
2012-12-24 13:44
260 查看
加粗用<b></b>下划线<u></u>样式用<font>等等
<font color='#E7450D' size='12'></font>
txt.htmlText= "<a href='http://www.asarea.cn' target='_blank'><u><font color='#2969c0' size='13'>请点击</font></u</a>";
设置鼠标手形状
一般设置
buttonMode="true"
useHandCursor="true"
Label需要这样设置:
buttonMode="true"
useHandCursor="true"
mouseChildren="false"
var desireCollection:ArrayCollection = new ArrayCollection();
var dataSortField:SortField = new SortField();
dataSortField.name = "No";
dataSortField.numeric = true;
dataSortField.descending = true;
var dataSort:Sort = new Sort();
dataSort.fields = [dataSortField];
desireCollection.sort = dataSort;
desireCollection.refresh();
<font color='#E7450D' size='12'></font>
txt.htmlText= "<a href='http://www.asarea.cn' target='_blank'><u><font color='#2969c0' size='13'>请点击</font></u</a>";
设置鼠标手形状
一般设置
buttonMode="true"
useHandCursor="true"
Label需要这样设置:
buttonMode="true"
useHandCursor="true"
mouseChildren="false"
var desireCollection:ArrayCollection = new ArrayCollection();
var dataSortField:SortField = new SortField();
dataSortField.name = "No";
dataSortField.numeric = true;
dataSortField.descending = true;
var dataSort:Sort = new Sort();
dataSort.fields = [dataSortField];
desireCollection.sort = dataSort;
desireCollection.refresh();
相关文章推荐
- Flex中如何通过displayAsPassword属性,设置TextInput文本显示密码形式(*)
- 同一labeltext设置不同的属性
- jQuery来了--text(),html(),val(),attr(),捕获内容/属性,设置内容/属性,回调函数
- Flex中如何利用htmlText和condenseWhite属性在RichTextEditor中紧缩HTML的空格的例子
- 设置Flex4的Label组件截取超出长度的text属性值并显示提示
- Flex中通过设置textAlign和labelStyleName样式设置FormItem容器中标签文本对齐方式的例子
- html首行缩进2字符,可以使用CSS属性中的【text-indent】进行设置。
- HTML基础学习-16-text文本相关属性设置
- Flex4,textArea控件的htmlText属性
- jQuery - 设置内容和属性 设置内容 - text()、html() 以及 val() , 设置属性 - attr()
- Flex中通过设置labelPlacement属性设置RadioButton控件文本标签排列位置的例子
- as3 flex 中经常用的一些htmlText属性
- Flex中如何利用dataDescriptor和labelFunction属性,以及hasChildren()和getChildren()函数设置Tree中包含子节点个数
- Flex中通过textAlign样式在一个按钮(Button)控件中设置标签(label)对齐方式的例子
- JavaScript(19)jQuery HTML 获取和设置内容和属性
- Flex中TextInput组件如何设置限制某些字符的输入
- 利用KVC机制,为textField设置字体属性
- tabcontrol的alignment属性设置成Left或Right时,tabPage的text内
- Ext.form.Label组件动态设置html值
- android textView设置html,解决图片和文字不对齐的问题