Combobox图像背景重叠

时间:2013-06-18 11:07:30

标签: html css background combobox overlay

所以,我有一个带有固定witdhbackground图片的组合框来制作自定义箭头。

我想限制显示的字符数,使其不与background图像重叠。

检查example 发生了什么以及我想做什么。

@Edit 我测试了这个,据我所知,在IE中这个问题不会发生。我不知道是不是因为我使用谷歌浏览器。

1 个答案:

答案 0 :(得分:1)

将以下行添加到select {}定义中:

text-overflow: ellipsis;
overflow: hidden;
width: 100px;
margin-right: 20px;
padding-right: 20px;

http://jsfiddle.net/zagzH/316/

相关问题