【发布时间】:2012-09-26 20:40:25
【问题描述】:
我有一些 CSS 在 Firefox、Chrome 和其他浏览器中运行良好,但在 IE 中无法呈现相同的内容。
我在输入字段上使用这个 CSS,它在所有浏览器中都能完美显示 - 直到我在字段中写入。在 Internet Explorer 中,当我写到字段末尾之后,背景会重复。这是我的代码:
.web_contact_text
{
position:relative;
padding-left:10px;
padding-right:10px;
width:244px;
height:65px;
line-height:65px;
margin-left:auto;
margin-right:auto;
margin-bottom:-3px;
left:10px;
background:transparent;
background-image:url("imagenes/contactar/campo_back_text.png");
border:0px solid;
font-family:Arial;
font-size:18px;
color:#000000;
cursor:pointer;
cursor:hand;
}
<input type="text" name="contactar_nombre" class="web_contact_text" value="Insertar Nombre" title="Insertar Nombre" onclick="this.value=''">
不好
其他棕色也可以
问题在于背景图像,当您使用输入字段,文本等时,当您写入更多大小的此输入字段时,图像用作背景重复,这件事只发生在 Internet Explorer 中,当你写得更多,不尊重背景,一直重复这个,不修复背景,不尊重
【问题讨论】:
-
IE 8,输入中的背景图像在写入更多的字段宽度时重复,问候
-
你可以在这里看到的问题:i40.tinypic.com/4vs187.png
标签: css internet-explorer background-image