您的位置:首页 > Web前端 > HTML

HTML tags in textfield

2013-01-11 15:15 204 查看

HTML tags in textfield

If you want to format text in field using old html tag here is simple list of possible tags:

<a> hyperlink. Has two parameters:

target - target window

href - url (or event!)

<b> - text betwen those tags will be bold

<br> - breaks line

<font> - describes font:

color - color of the text. Must be in hex (with # at the begining)

face - font name

size - font size

<img> allows to embed image (or swf) like in html site. Here is a list of supported properties:

src - source of media

width - width of rectangle where media is placed (always in px)

height - height of rectangle where media is placed (always in px)

align - horizontal alignment. Left or right. Specifies on which side text will flow around the image

hspace - horizontal margin around media. By default it is 8px

vspace - vertical margin around media. By default it is 8px

id - identifier for embedded media. Used to controll it

checkPolicyFile - connected to the security policy. Used with flash swf file embedded

<i> - text between those tags will be italic.

<li>, <ul>, <ol> - lists. ordered and dotted

<p> - paragraph. Supports only two attributes:

align - specifies if text block is aligned to left/right/center or justify

class - connects with CSS class

<span> - inline part of text that allows only one attribute:

class - classname from CSS

<u> - text between those tags will be underlined

Complete description in Adobe's API: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#htmlText
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: