【发布时间】:2014-03-25 21:35:38
【问题描述】:
我有一个表单,其提交输入按钮有一个背景图像,并且在输入字段的顶部向左移动:
这适用于所有当前的浏览器。我的问题是它还需要在 Windows XP 上的 IE8 中工作(!),但事实并非如此。当您将鼠标悬停在输入(放大镜)上时,指针不会改变,并且按钮不可点击。请问我哪里出错了?
HTML:
<form id="" action="" method="post">
<label for="search">Search</label>
<input type="text" id="search" name="search" value="" />
<input type="submit" name="searchsub" class="searchsub" value="" />
</form>
CSS:
#search {
width:222px;
height:36px;
padding-left:223px;
padding-right:10px;
float:left;
}
input.searchsub {
width:23px;
height:23px;
float:left;
background-image:url(../images/magnifier.jpg);
margin:8px 0 0 -32px;
border:0;
cursor:pointer;
}
【问题讨论】:
标签: html css internet-explorer-8