手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >IE下background背景图片无法显示问题解决方法
IE下background背景图片无法显示问题解决方法
摘要:在做下拉框select的时候用一个箭头符号,作为下拉框的三角,在firefox和chrome下均可以正常显示,但是在IE下无法显示。查找了很...

在做下拉框select的时候用一个箭头符号,作为下拉框的三角,在firefox和chrome下均可以正常显示,但是在IE下无法显示。

查找了很久,发现是图片格式问题,把png格式的转换成gif的就没有问题了。。。。

附相关代码,主要是html的:

<style type="text/css">

.select{ width:180px; height:29px; overflow:hidden; border:solid 1px #339999; border-radius:5px; background:url(images/arrow.gif) no-repeat 137px 0px;}

.select-style select{ padding:2px; background:transparent; width:200px; font-size: 16px; border:none; height:24px; -webkit-appearance: none; appearance:none;}

</style>

<div>

<div>

<select name="select">

<option>hello</option>

<option>you</option>

<option>apple</option>

<option>good</option>

</select>

</div>

</div>

【IE下background背景图片无法显示问题解决方法】相关文章:

DIV下图片自适应解决方法

火狐下easyui1.3.*弹出window框无法定位到中间问题解决

Input标签与图片按钮水平对齐解决方法

常用的10种CSS BUG解决方法与技巧

总结CSS简写方法

ie6,7下空DIV无任何内容时占据空间问题解决

IE6下div层被select控件遮住的问题解决方法

IE9 CSS因Mime类型不匹配而被忽略问题相关解答

使用css的background:url设置背景图方法

CSS教程:CSS的Background Images背景图片

精品推荐
分类导航