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
相关文章推荐
- Tags support in htmlText flash as3
- Can you refresh a document in the Notes client after changing a rich text field?
- duplicate MIME type "text/html" in nginx.conf的根源
- How to put a space character before option text in a HTML select element?
- Where is the best place to put <script> tags in HTML markup?
- Ext.widgets-form(上)BasicForm/Field/Checkbox/Radio/HtmlEditor/TextField
- HTML 03: 文字布局(TEXT STYLE)标记(TAGS)
- How to enter text into a textfield in a web view using UIAutomation
- 深入理解iOS API系列(一) textField:shouldChangeCharactersInRange:replacementString:
- HTML--文字布局(TEXT STYLE)标记(TAGS)
- - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range 用法
- TextField中的属性:text 与 htmlText
- Ext.widgets-form(上)BasicForm/Field/Checkbox/Radio/HtmlEditor/TextField
- make the innerText in the html element can not be selected
- Field.Text AND Field.Keyword in Lucene
- Ext.widgets-form(上)BasicForm/Field/Checkbox/Radio/HtmlEditor/TextField
- textField:shouldChangeCharactersInRange:replacementString:
- Ext.widgets-form(上)BasicForm/Field/Checkbox/Radio/HtmlEditor/TextField
- How to get html text in a Flex Alert panel.