如何修改< select>的CSS落下? [英] How to modify CSS of a <select> dropdown?

查看:102
本文介绍了如何修改< select>的CSS落下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方法可以修改< select> 标记的下拉列表样式?



给定代码(例如)

 < select> 
< option> CSS< / option>
< option> HTML< / option>
< option> HTML 5< / option>
< / select>

任何用于< select> 的css都会只修改框本身,但不是下拉菜单...背景颜色可以改变,但除此之外,是否有可能执行重型定制? htmllion.com



我想要实现自举式下拉列表。 w3schools.com



使用阴影和自定义样式。
这可能吗?

解决方案

无法对html选择的下拉列表进行样式设置。但是你可以建立自己的下拉列表或使用像引导程序这样的框架。

I was wondering if there is any method to modify the style of the dropdown lists of a <select> tag?

Given the code (for example)

<select>
 <option>CSS</option>
 <option>HTML </option>
 <option>HTML 5</option>
</select>

Any css for <select> would only modify the box itself, but not the dropdown... The background color can be changed but beyond that, is it possible to perform a heavy customization? htmllion.com

I'd like to achieve bootstrap alike dropdown lists. w3schools.com

With shadows and a custom style. Is that possible?

解决方案

It's not possible to style the dropdown list of a html select. But you can build your own dropdown list or use a framework like bootstrap.

这篇关于如何修改&lt; select&gt;的CSS落下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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