As3.0 stylesheet htmltext use stylesheet

Source: Internet
Author: User

VaR TF: textfield = new textfield ();
TF. wordwrap = true;
TF. multiline = true;
VaR stylesheet: stylesheet = new stylesheet ();
Stylesheet. parsecss (". bluetext {color: # ff ;}");
TF. stylesheet = stylesheet;
Tf.html text = "<SPAN class = 'bluetext '> 111111 </span> <a href = 'HTTP: // www.baidu.com '> <I> <u> <B> click </B> </u> </I> </a> <br/> <li> 1 </LI> <li> 2 </LI> <p> www.3dtrendstyle.com </P>

Addchild (TF );

Htmltext supports labels:

Link visited hover active style settings supported by a href target

B

I

U

Font

Li

<Br>

P

Span

IMG

<SPAN class = 'style name defined inside stylesheet '>

You can also set existing tags.

A {

}

P {

}

IMG {

}

You can also customize

Class usage

ID used #

As3.0 span only has class, so select

. Bluestyle {

Color: # ff;

}

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.