【发布时间】:2012-08-23 05:46:43
【问题描述】:
由于某种原因,我的搜索框在 ie 中没有正确显示。搜索框根本不可见,按钮位于不应该出现的角落。 这是我的 HTML:
<div class="searchbox">
<form action="?" method="get">
<input type="text" placeholder="Search Modern Spaces" />
<button type="submit" value="submit" />
</form>
</div><!--searchBoxOne-->
还有 CSS:
.searchbox input {
color: #b0b0b0;
width: 430px;
height: 28px;
margin-top: 32px;
padding: 10px 5px;
float: left;
font-size: 20px;
border: 0;
border-radius: 4px 4px 4px 4px;
box-shadow: inset 0 0 6px #7b7a7a;
}
.searchbox button{
overflow: visible;
position: relative;
margin: 39px 0 0 -40px;
border: 0;
padding: 0;
cursor: pointer;
height: 40px;
width: 36px;
background:url(../images/srch_button.png) no-repeat;
}
关于如何解决这个问题的任何想法?感谢您的帮助。
【问题讨论】:
-
什么版本的IE?减去占位符(在任何版本的 IE 中都不起作用),它在 IE9 中看起来不错。 jsfiddle.net/SJLkK
标签: html css internet-explorer cross-browser