如何在选择输入中的选项之间添加填充? [英] How to add padding between options in select input?

查看:138
本文介绍了如何在选择输入中的选项之间添加填充?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的选择输入选项中添加填充?这是我的CSS,所有选项似乎彼此之间没有任何间距(根据选项的高度),我进行了CSS重置.此外,如何给选项增加一些高度以使其看起来不错?

How to add padding to my select input options? Here is my CSS and all options seem below each other without any spacing (in terms of height of option) I have a CSS reset.. aside from that how can I give the options a bit of height to make it look good?

.upload-input select {
    display: block;
    font-size: 14px;
    color: #888;
    width: 616px;
    background: #fff;
    border: 1px solid #ccc;
}

更新

我应用了建议的CSS.它看起来不正确.

I applied the suggested css. It does not look right.

推荐答案

尝试

.upload-input select option { padding: 6px;}

您可能不得不摆弄.upload-input select css.

You might have to fiddle with the .upload-input select css though.

赞:

.upload-input select {height: 35px;}

这篇关于如何在选择输入中的选项之间添加填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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