<
html
>
<
head
>
<
style
type
="text/css"
>
.disabled
{
}
.disabled optgroup
{
font-size
:
12px
;
font-style
:
normal
;
font-weight
:
normal
;
font-variant
:
normal
;
color
:
#CCCCCC
;
background-color
:
#F5F5F5
;
}
.disabled option
{
padding-left
:
0px
;
}
</
style
>
<
title
></
title
>
</
head
>
<
body
>
<
select
name
="carCos"
class
="disabled"
>
<
optgroup
label
="American"
></
optgroup
>
<
option
value
="General Motors"
>
General Motors
</
option
>
<
option
value
="Ford"
>
Ford Motor Company
</
option
>
<
option
value
="Chrysler"
>
DaimlerChrysler
</
option
>
<
optgroup
label
="Japanese"
></
optgroup
>
</
select
>
</
body
>
</
html
>
</
select
>
</
body
>
</
html
>
文章来源:
http://Jorkin.Reallydo.Com/default.asp?id=475
转载于:https://www.cnblogs.com/pboy2925/archive/2008/03/04/1248079.html