Image button displaying 'Submit query' over the top of image in Firefox

前端 未结 4 1032
醉梦人生
醉梦人生 2021-01-13 04:29

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 ima

相关标签:
4条回答
  • 2021-01-13 04:50

    Text-indent: -9999px; add this to your css

    0 讨论(0)
  • 2021-01-13 04:52

    also add css display:block and

    Text-indent: -9999px;

    Then it will work in all browsers

    0 讨论(0)
  • 2021-01-13 05:08

    Add this attribute to your button:

    value=""
    
    0 讨论(0)
  • 2021-01-13 05:12

    still comes top in the google list so adding my 2 cents worth: the answers above work but don't address the cause; in our case it was the missing imageurl after replacing it with css like the above, in which case one simple solution is to use a linkbutton instead

    0 讨论(0)
提交回复
热议问题