【问题标题】:Styled search bar completely disappears in IE7样式化的搜索栏在 IE7 中完全消失
【发布时间】:2010-11-08 16:47:22
【问题描述】:

我在这个网站上设置了一个搜索栏here

在 IE7 中完全消失(我不需要支持 IE6)。 它在我迄今为止测试过的任何其他浏览器(Chrome、IE8、Safari、Firefox、Opera)中都能正常工作。

我尝试删除并重新添加 CSS 属性但没有成功

HTML

<div id="access-search">
   <form id="searchform" method="get" action="http://eezzyweb.com">
      <div>
         <input id="s" name="s" type="text" value="" size="20" tabindex="1" />
         <label for="s">
            <input id="searchsubmit" name="searchsubmit" type="submit" value="Search" tabindex="2" />
         </label>
      </div>
   </form>
</div>

CSS

#searchform div{
position:relative;
float:right;
display:inline;
top:6px;
right:10px;
width:250px;
height:22px;
background:url(images/search-bkg-complete.png) 0 0 no-repeat;
}
input#s{
position:relative;
width:210px;
height:16px;
margin-left:5px;
background:none;
padding:3px 0;
}
#searchsubmit {
background:url(images/submit-button.png) 0 2px no-repeat;
float:right;
width:22px;
height:21px;
text-indent:-9999px;
text-transform:capitalize;
}
input#s, #searchsubmit{
vertical-align:middle;
border:0;
line-height:1;
font-size:90%;
}
#searchsubmit:hover{
cursor:pointer;
}

【问题讨论】:

  • @AdamWenger 完成了……有点晚了……

标签: html css forms input


【解决方案1】:

大声笑...我解决了。有一个溢出:隐藏在父容器上!

【讨论】:

  • 要将问题标记为已回答/已解决,请单击答案旁边的绿色复选标记以接受它。这会将其从未回答的问题列表中删除。
猜你喜欢
  • 1970-01-01
  • 2013-04-16
  • 2013-10-13
  • 1970-01-01
  • 2022-08-23
  • 2013-09-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多