能否设定select下拉列表的长度。。。

能否设定select下拉列表的长度,select选项很长,现在我无法控制页面效果,请各位帮忙看看,看能不能固定下拉列表的长度,当选项大于这个长度时在下拉的时候显示全部内容。。。或者看看有没有更好的解决方案。。
---------------------------------------------------------------

自己摹仿一个
http://lucky.myrice.com/temp/select.htm
---------------------------------------------------------------

style="width:50%"
---------------------------------------------------------------

是“下拉列表的长度”,还是“下拉列表的宽度”?
---------------------------------------------------------------

1<select style="width:x"></select>

---------------------------------------------------------------

onMouseOver="this.style.width = '200px'" onChange="this.style.width = '50px'"
---------------------------------------------------------------

建议采用InterDev或MS.Net等开发工具来完成,这样容易多了,而且可以从此工具中掌握到更多的HTML信息

Published At
Categories with Web编程
Tagged with
comments powered by Disqus