如何限制选择的HTML标签的显示或高度 [英] how to limit display or height of a select HTML tag

查看:192
本文介绍了如何限制选择的HTML标签的显示或高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怀疑他们是否会限制选择标签的显示或高度。

I wonder if their's a way to limit the display or height of a select tag.

这是我希望它看起来像是什么样子的图像

This is an image of what I want it to look like

我不介意它是Javascript,Jquery,CSS还是只是一个列表
我需要知道。这个怎么做。
或者可以给我一个样本。

I don't mind if it's Javascript, Jquery, CSS, or make it just a list I need to know on. how to do this. or could give me a sample.

推荐答案

如果您最终需要选择下拉式样, ,我建议寻找jQuery插件。我使用选择,但现在我会提醒你,这是一件很痛苦的事情。

If you will end up needing to style the select dropdown even a little, I suggest looking for jQuery plugins. I use chosen but I'll warn you now, it's a pain to do anything with.

这篇关于如何限制选择的HTML标签的显示或高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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