Compliance with Android webview html requirements?

I have a web view that displays some HTML that I generate at runtime. This html works in chrome and IE, but when I try to load it in webview, it tells me that the "webpage is not available" I use the basic HTML elements:

<body bgcolor="01517f">
    <table>
        <font color="ffffff" size="4">
            <p>
                <a href="http://www.gim.net/Customized/Uploads/Screenshot532011-33538-PM.jpg">
                    <img src="http://www.gim.net/Customized/Uploads/Screenshot532011-33538-PM.jpg" width="160" height="240" align="right">
                </a>
                Message body
            </p>
            <table width="95%" cellpadding="3" cellspacing="0" >
                <tr>
                    <td>
                        <b>
                            <font size="3" color="ffffff">
                                parent1
                            </font>
                        </b>
                    </td>
                    <td>
                        <p align="right">
                            <font size="2" color="ffffff">
                                This will be the date string
                            </font>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan ="2">
                        <p align="left">
                            <font size="3" color="ffffff">
                                Blah blah
                            </font>
                        </p>
                    </td>
                </tr>
            </table>
            <hr noshade size="1" />
        </font>
    </table>
</body>

For some reason, if I delete a nested table, it seems perfect. Is there something non-standard about how I format my HTML so that it doesn't work with the Android website?

EDIT: , width = '95% ' . (ex: width = "160px" ), . , , , , , , .

, - , , , ?

+3
2

, - Android HTML, loadData . , , "-", , HTML- URL-, http- (, 20 ). % "width = '95%" % (% 25), . CSS -

+4
  • font -Tags
  • CSS
  • text-align CSS
  • align -Attribute . CSS .
  • img - alt -Attribute, .
  • width height - , CSS . , - . 140 140px ( 0, 0 - ).
  • , , HTML- <html> -Tag a <head> -Tag <body> -tag.
  • HTML- Doctype .

, HTML- , .

, , . . TableRow TableData. , . .

+2

All Articles