简体   繁体   English

iOS5 / 6上的黑色背景(Safari,Ipad,Iphone)

[英]Black background on iOS5/6 (Safari, Ipad, Iphone)

I have contact form with input[type="text"] and select fields. 我有带有input [type =“ text”]的联系表单,然后选择字段。 For those elements i setup background image without any transparent pixels 对于那些元素,我设置没有任何透明像素的背景图像

But on iOS devices it's black 但是在iOS设备上是黑色的

CSS code: CSS代码:

border:1px solid #909090; 
height:19px; 
width:344px; 
background:#fff url(../img/input-bg.png) 0 0 repeat-x

Nothing else overwrite those styles. 没有其他东西可以覆盖那些样式。 What's the problem? 有什么问题?

You may either: 您可以:

  1. Re-save the files as other image files (JPEG, GIF) 重新将文件另存为其他图像文件(JPEG,GIF)
  2. If it is a gradient image, then you may use CSS3 Gradient to achieve the effect. 如果是渐变图像,则可以使用CSS3 Gradient达到效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM