<html:select property="xxx" styleClass="width:auto" />
为自适应宽度。
<hmtl:select property="xxx" styleClass="width:80pt;" />
指定宽度。
样式表的优先级:
行内样式表――内部样式表――外部样式表
优先级相同的情况下,后定义的属性会覆盖先前定义的属性。
1、内部样式表
?? <head>
????? <style type="text/css">
???????? body
???????? {
???????????? background-color:blue;
???????? }
????? </style>?
</head>
2、行内样式表
?? <p style="text-indent:24px;" >段落内容</p>
3、外部样式表
??? <head>
??????? <link rel="stylesheet" type="text/css" href="xxx.css"></link>
?
??? </head>
?
??? 【xxx.css】
??? h1.biaoti
??? {
??????? font-size:12px;
??? }
??? .xinwen
??? {
??????? font-size:16px;
??????? font-weight:bold;
??? }
???
?