读书人

select上拉框的宽度调整

发布时间: 2012-10-30 16:13:35 作者: rapoo

select下拉框的宽度调整

<html:select property="xxx" style/>
为自适应宽度。
<hmtl:select property="xxx" style/>
指定宽度。
样式表的优先级:
行内样式表——内部样式表——外部样式表
优先级相同的情况下,后定义的属性会覆盖先前定义的属性。
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;

??? }

???

?

读书人网 >Web前端

热点推荐