在 Firefox 中的图像顶部显示“提交查询"的图像按钮 [英] Image button displaying 'Submit query' over the top of image in Firefox

查看:34
本文介绍了在 Firefox 中的图像顶部显示“提交查询"的图像按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目在 IE 和 chrome 中都正确显示.然而,在 FF 中,出于某种原因,图像按钮在其顶部显示提交查询".我正在 CSS 中设置图像位置,它绝对正确,因为它在所有浏览器中都能正常工作,只是 FireFox 出于某种原因在每个图像按钮的顶部贴上了提交查询".

My project is displaying correctly in both IE and chrome. However in FF for some reason the image button displays 'Submit query' over the top of it. I am setting the image location in CSS and it is definitely correct as it is working correctly in all browsers, its just that FireFox for some reason plasters 'Submit Query' over the top on each image button.

这是我的 CSS:

.NavModuleTabs A.NavModuleSelectedWide1
{
color: #555555;
margin-top: 10px;
padding-top: 5px;
height: 25px;
background-image: url(../Images/NavBar/NavModuleTab_125.gif);
background-repeat: no-repeat;
font-weight: bold;
width: 130px;
display: block;
}

有人知道为什么会发生这种情况吗?我通过谷歌找到了一些解决方案,但到目前为止没有任何效果.

Does anybody have any ideas why this happens? I found a few solutions via google but nothing has worked for me so far.

谢谢

推荐答案

将此属性添加到您的按钮:

Add this attribute to your button:

value=""

这篇关于在 Firefox 中的图像顶部显示“提交查询"的图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆