select清空后,页面select框显示长度如何自动变化 select.style.width = "1";select.style.width = "auto"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不行就试试select.style.width = "";select.style.width = "auto "; <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";}测试过没问题 清除当前select下的option后列表框为默认的空option的长度,,你试一试<select></select> 就知道了 关于body高度的疑惑 求一个可滚动的工具条插件或代码 如何使mouseover事件不重复执行 关于页面选择的问题!!!难搞 这个正则表达式匹配什么字符串? XML类,在FF下无法运行getElementsByTagName js怎么实现在load后 自动点击一个链接 如果两个页面引用同一个js文件,是不是这个js文件只会被浏览器加载一次? 文本框为什么只能上移下移,能左移右移吗? 制作仿人人网评论框demo的问题!!! 很难的问题:window.open()改为showModalDialog() w3c标准下,JS如何隐藏滚动条
select.style.width = "";
select.style.width = "auto ";
<option>asdkjflkasdjf</option>
</select>window.onload = function()
{
var select1 = document.getElementById("selector");
select1.length = 0;
select1.style.width = "";
select1.style.width = "auto";
}测试过没问题