
777
DEVELOPING
COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Las
t
upda
te
d 8/5/2010
You can use both techniques in combination: you can specify a skin for your form and use styles to specify the
appearance (such as input text font) of individual controls.
For detailed information on the style names and values that you can use, see ColdFusion Flash Form Style Reference
in the
CFML Reference
.
Controlling form appearance with Flash skins
The cfform tag takes a
skin
attribute, which lets you select an overall appearance for your form. The skin determines
the color used for highlighted and selected elements.
You can select the following Flash skins:
•
haloBlue
•
haloGreen (the default)
•
haloOrange
•
haloSilver
About Flash form styles
The ColdFusion Flash form tags have a
style
attribute that lets you specify control characteristics using CSS syntax.
You can specify a
style
attribute in the following tags:
•
cfform
•
cfformgroup
•
cfcalendar
•
cfformitem, types
hrule
and
vrule
•
cfgrid
•
cfinput
•
cfselect
•
cftextarea
•
cftree
The attributes for the
cfform
and
cfformgroup
generally apply to all the form or form group’s children.
Flash supports many, but not all, standard CSS styles. ColdFusion Flash forms only support applying specific CSS
style specifications to individual CFML tags and their corresponding Flash controls and groups. You cannot use an
external style sheet or define a document-level style sheet, as you can for HTML forms.
Flash form style specification syntax
To specify a Flash style, use the following format:
style="stylename1: value; stylename2: value; ..."
For example, the following code specifies three style values for a text input control:
<cfinput type="text" name="text2" label="Last"
style="borderSyle:inset; fontSize:12; backgroundColor:##FFEEFF">
About Flash form style value formats
Style properties can be Boolean values, strings, numbers, or arrays of these values.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...