select属于控件,因此不具有许多通常元素具备的css特性。 尤其是ie所实现的select,比之其他控件如input、button更为特殊,也没有实现完整的html4的推荐标准如optgroup之类。究其原因,大概是作为控件,很大程度上是直接与用户交互的,因此要保持一致的表现,所以是交由更低层面的API实现的,以做到与操作系统的一致。根据Microsoft Platform SDK,“This element is a windowed control and does not support the z-index attribute or zIndex property.”
尤其是ie所实现的select,比之其他控件如input、button更为特殊,也没有实现完整的html4的推荐标准如optgroup之类。究其原因,大概是作为控件,很大程度上是直接与用户交互的,因此要保持一致的表现,所以是交由更低层面的API实现的,以做到与操作系统的一致。根据Microsoft Platform SDK,“This element is a windowed control and does not support the z-index attribute or zIndex property.”