是否可以将 stylename 应用于在flex4中?
我有 RichEditableText 组件,在这个组件中我根据条件创建了超链接标签,但不需要内联样式(颜色字体系列)。我想应用样式名称(CSS)。是否可以为超链接应用样式名称? 给一些想法
<s:RichEditableText editable="false" selectable="false" mouseEnabled="{user.isSubscribed}" mouseChildren="{user.isSubscribed}">
<s:content>
<s:a click="linkelement1_clickHandler(event)" >
<s:span styleName="bodyLinkContent10" >{user.isSubscribed ? "Contact Participant" : "Unavailable"}</s:span></s:a>
</s:content>
</s:RichEditableText>
风格名称不适用?你能告诉我原因吗?
我试过
<s:RichEditableText editable="false" selectable="false" styleName="{user.isSubscribed ? 'bodyLinkContent10':'bodyContentGrey10'" mouseEnabled="{user.isSubscribed}" mouseChildren="{user.isSubscribed}">
<s:content>
<s:a click="linkelement1_clickHandler(event)" fontSize="10"><s:span textDecoration="none" color="{user.isSubscribed ? 0x003399 : 0x666666}">{user.isSubscribed ? "Contact Participant" : "Unavailable"}</s:span></s:a>
</s:content>
</s:RichEditableText>
它工作正常但要求仅应用CSS。那么有什么方法可以应用吗?
I have RichEditableText component , In this component I have created hyper link label based on condition ,but no need inline style(color font-family) . I want to apply style name(CSS) . is it possible can apply style name for hyper link?
Give some idea
<s:RichEditableText editable="false" selectable="false" mouseEnabled="{user.isSubscribed}" mouseChildren="{user.isSubscribed}">
<s:content>
<s:a click="linkelement1_clickHandler(event)" >
<s:span styleName="bodyLinkContent10" >{user.isSubscribed ? "Contact Participant" : "Unavailable"}</s:span></s:a>
</s:content>
</s:RichEditableText>
style Name Does not apply ? Could you tell me reason for that ?
I tried
<s:RichEditableText editable="false" selectable="false" styleName="{user.isSubscribed ? 'bodyLinkContent10':'bodyContentGrey10'" mouseEnabled="{user.isSubscribed}" mouseChildren="{user.isSubscribed}">
<s:content>
<s:a click="linkelement1_clickHandler(event)" fontSize="10"><s:span textDecoration="none" color="{user.isSubscribed ? 0x003399 : 0x666666}">{user.isSubscribed ? "Contact Participant" : "Unavailable"}</s:span></s:a>
</s:content>
</s:RichEditableText>
It is working fine But requirement is apply the CSS only.So any way for apply ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论