CSS IE8表单图片提交按钮移动问题
时间:2011-09-10
来源:互联网
用背景background图片做搜索框表单的提交按钮,在IE8浏览器点击会发生向上移动的问题,这样就会把搜索框的背景的border部分给挡住,有点难看,有没有什么解决方法让其在IE8下不发生移动??
CSS代码如下
[ 本帖最后由 telunsu 于 2011-9-10 23:04 编辑 ]
CSS代码如下
复制内容到剪贴板
#search input.submit {float:left;width:130px;height:34px;background:url(images/search.gif) no-repeat -441px -65px;border:none;margin-top:27px;cursor:pointer;outline:none;}
#search input.search {float:left;width:407px;height:28px;line-height:30px;padding:0px;margin:30px 0 0 33px;border:none;}
form表单
代码:
#search {float:right;margin-top:35px;width:578px;height:66px;background:url(images/search.gif);}#search input.submit {float:left;width:130px;height:34px;background:url(images/search.gif) no-repeat -441px -65px;border:none;margin-top:27px;cursor:pointer;outline:none;}
#search input.search {float:left;width:407px;height:28px;line-height:30px;padding:0px;margin:30px 0 0 33px;border:none;}
复制内容到剪贴板
<form method="get" id="searchform" action="">
<input type="text" value="" class="search" name="s" id="s" size="20" />
<input type="submit" id="submit" value="" class="submit" />
</form>
</div>
代码:
<div id="search"><form method="get" id="searchform" action="">
<input type="text" value="" class="search" name="s" id="s" size="20" />
<input type="submit" id="submit" value="" class="submit" />
</form>
</div>
[ 本帖最后由 telunsu 于 2011-9-10 23:04 编辑 ]
作者: telunsu 发布时间: 2011-09-10
最好能发上来代码,你说的别人估计没见过,最好把出现这个问题的源代码发上来
作者: wyysf 发布时间: 2011-09-10
代码图片都上传了。麻烦帮我看下。
作者: telunsu 发布时间: 2011-09-10
这个问题,说实话,还没遇到过。
作者: kesin 发布时间: 2011-09-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28