在选择框中填充 [英] Padding in select boxes

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

问题描述

我知道选择框对于使用CSS进行样式来说有点麻烦,但是无论如何我都可以不使用高级技术而添加一些填充来向下按压文本,而无需在右边的箭头上添加填充手边?

I know select boxes are a bit of a pain to style with css, but without resorting to advanced techniques is there anyway I can add some padding to push down the text a bit without it also adding padding to the arrow on the right hand side?

推荐答案

将此添加到您的CSS类中.也许有帮助吗?

add this to your CSS class. Maybe this helps?

-webkit-appearance:none;
-moz-appearance:none;
appearance:none;

这篇关于在选择框中填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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