简体   繁体   中英

HTML Form Issue on IE

I have an HTML form which uses an image as a submit button. The problem I have is the value="Submit" is showing up as text over the submit image button on IE7 & IE8. can anyone tell how to prevent this? Thanks!

<div>
 <input id="saveForm" name="saveForm" class="btTxt submit" type="submit" value="Submit" />
</div>

You can probably change

 value="Submit" 

to

 value="&nbsp;"

Or

It looks like you may need to change it to input type="image" instead of input type="submit"

Or

Possibly the submit button can be an Anchor or a Div with an onclick event handler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM