Navigation

Previous

Archives

2007年9月28日 @ 14:50

HTMLStyle

HTMLStyle 11Apr07 | 11



This is a component I developed for the sake of simplifying the process of formatting html-text in Flex.

Check it out:
Demo
Source
Documentation

HTMLStyle works pretty much the same as the tag and is also applicable in Actionscript code. Used in mxml this is the simplest form of how the component can be used:

Actionscript:

  1. <local:HMTLStyle id="myHTMLStyle">
  2.   <![CDATA[
  3.     .someStyleClass { color: #FF0000; }
  4.   ]]>
  5. </local:HMTLStyle>
  6.  
  7. <mx:TextArea styleSheet="{myHTMLStyle.styleSheet}" />

The component also has a source property which can be set to target an external css file..

If you have any ideas or feedback please drop a comment, I'm very curious as to what you all have to say..

Share

Filed under: 资料 · Tags: HTML  style  css  

Articles related:

Flex 學習資源更新  (2007-9-14 22:42:21)

FLEX利用CSS传递数据  (2007-8-26 8:48:1)

几个漂亮Button的CSS   (2007-8-20 16:15:33)

Leave a Comment

◎welcome to give out your point。

Misc

Linkage