not possible, SELECT is a windowed control

解决方案 »

  1.   

    我见过一个真的可以的,但是忘了地址,现在用google都搜不到。隐约记得是在selsct外面套了一层span之类的东西,然后把select的各个margin都设为负数。但是刚才自己试验的时候做不出来,不知道少了点什么。记得那篇文章的名字好像叫破除select不能改变样式之神话之类的。这里应该有其他人也看过吧?要让我自己做,多半就显示一个平面效果的input在那里,onmouseover的时候换select显示,onmouseout的时候换回去,虽然不是很象,但是就不会挡到层了。
      

  2.   

    <span style="position:absolute">
    <select style="margin-right:-3;margin-bottom:-3;margin-top:-21;margin-left:-1">
    <option>test</option>
    </select>
    </span>大概象这样子吧?
      

  3.   

    here is one, but it is not a SELECT:
    http://webfx.eae.net/dhtml/combobox/combobox.htmsee the demo at
    http://webfx.eae.net/dhtml/combobox/combo_demo.htm
      

  4.   

    终于找到了:
    http://www.lshdic.com/bbs/files.asp?dex=网页版面美工设计&page=1&myclass=108