select.style.width = "1";
select.style.width = "auto";

解决方案 »

  1.   

    不行就试试
    select.style.width   =   "";
    select.style.width   =   "auto ";
      

  2.   

    <select id="selector">
    <option>asdkjflkasdjf</option>
    </select>window.onload = function()
    {
    var select1 = document.getElementById("selector");
    select1.length = 0;
    select1.style.width = "";
    select1.style.width = "auto";
    }测试过没问题
      

  3.   

    清除当前select下的option后列表框为默认的空option的长度,,你试一试<select></select> 就知道了