周大福项链女款式图片:如何控制<html:select>的长度

来源:百度文库 编辑:中科新闻网 时间:2024/05/08 04:11:51
<html:select>
<html:option value="">请选择</html:option>
<html:options/>
</html:select>
我可以只让它显示从数据库中取得文字的前5个字吗?或者,换行也可以?
谢谢!

Asp语法:

Left( 字符串表达式 ,length) 取字符串左边的几个字。 length 为取个字。 Len 函数可得知字符串的长度。

例子: Left("ABC123",3)

结果: ABC

<select size="">
<option>

</option>
</select>
在select中添加个size即可.