没法子,不支持那么高档的东西……
或者,用div模拟一个select,就能满足要求。

解决方案 »

  1.   

    <html>
    <head>
    <title></title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script language="javascript">
    function op(){
    if (document.myForm.mySelect.size=1){
    document.myForm.mySelect.size=document.myForm.mySelect.options.length;
    }
    }
    </script>
    </head>
    <body>
    <form name="myForm">
    <select name="mySelect" size=1>
    <option value=sjf>sdfsfsf</option>
    <option value=sjf>sdfsdff</option>
    <option value=sjf>sdfdf</option>
    <option value=sjf>sdfdf</option>
    </select>
    <input type="button" value="打开" onclick="op()">
    </form>
    </body>
    </html>
      

  2.   

    他们说下拉框的倒三角的用户级的事件,javaScript无法模拟出来,我们用层来做了一个模拟,但有个问题:作出来得层不能覆盖他下面的下拉框或选择列表,导致我们要打开层的时候就隐藏select ,hidden层的时候再恢复select,很麻烦。而且在一个页面出现多个这种情况又不能重用,…………,头疼。
    二楼的这样做的话是不是会暂时撑开页面上的td了,我试试