HTML多选择应该看起来像HTML选择 [英] HTML muliple select should look like HTML select

查看:109
本文介绍了HTML多选择应该看起来像HTML选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

alt text http://www.freeimagehosting.net/image.php?a55fa98f01 .jpg 您好我正在尝试使用一个HTML选择框与'多个'选择选项和大小为1如下
`

alt text http://www.freeimagehosting.net/image.php?a55fa98f01.jpgHi I am trying to use a HTML select box with 'multiple' select options and size to 1 as below `

<SELECT NAME="toppings" MULTIPLE SIZE=5>
<OPTION VALUE="mushrooms">mushrooms
<OPTION VALUE="greenpeppers">green peppers
</SELECT>

当尺寸设置为1时,会出现一个小滚动条,这会使页面变得笨拙。如果我增加尺寸它耗尽了我的页面,因为页面内和页面周围存在大约20个这样的多个框。我正在寻找一个看起来像< SELECT> 的解决方案,但它的功能应该是多个
这是可能的。我记得见过类似的东西,但不记得确切。
任何想法

When the size is set to 1 small scrollbar appears which makes the page clumsy.If I increase the size its eating up my page since there are around 20 such multiple boxes in and around the page. I am looking for a solution which looks like <SELECT> but should function as multiple Is this possible. I remember seen something similar but don't remember exactly. Any ideas

我上传了图片样本http://www.freeimagehosting.net/image.php?a55fa98f01.jpg

I had uploaded the imageSample http://www.freeimagehosting.net/image.php?a55fa98f01.jpg

推荐答案

查看此代码 ...它将您的多行使用jQuery选中复选框。

Check out this code... it turns your multi-row select into a dropdown with checkboxes using jQuery.

code.google.com/p/dropdown-check-list

这篇关于HTML多选择应该看起来像HTML选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆