Wednesday 15 May 2013

html5 - Image is displaying as button on iOS -


I have a problem with the images displayed in the button in the iPhone 5 (with the title text of the text of the button) Is the browser I have tried GIF, PNG and JPG file types. All with the same effect. It's not happening with all the images ... but a consistency appears

Any advice?

Code example:

  & lt; A href = "? / Index.php main_page = checkout_shipping" & gt; & Lt; Img width = "159" height = "27" heading = "proceed to checkout" alt = "proceed to checkout" src = "/ template / template_default / buttons / english / button_checkout.jpg" & gt; & Lt; / A & gt;   

Screenshots: Enter image details here

It seems that UIWebView is considering your alt as data, so its Instead of transmitting a text image. Verify that your image actually exists in that folder or try removing alt from a href tag, see what happens.

No comments:

Post a Comment