Thursday, August 25, 2011

[android-developers] Re: WebView

Looks like it was this:

table { width: 100%; }

It didn't like that.

On Aug 25, 4:20 am, Daniel Drozdzewski <daniel.drozdzew...@gmail.com>
wrote:
> On 25 August 2011 09:49, bob <b...@coolgroups.com> wrote:
>
> > Anyone know why WebView doesn't like this?
>
> Any more details, on how WebView does not like it? Does it say
> anything, when you feed it?
> How are you feeding it? Do you specify the MIME type?
>
> >        String html = "<html><head><style type=\"text/css\">tr { background-
> > color: rgba(0, 0, 0, 0.8); } tbody.striped tr:nth-child(even)
> > { background-color: rgba(20, 20, 20, 0.8); } tbody.striped tr:nth-
> > child(odd) { background-color: rgba(10, 10, 10, 0.8); } table { width:
> > 100%; } td { padding: 4px; font-size: 13px; } body { color: white;
> > font-family: \"Helvetica Neue\"; padding: 0; border: 0; margin: 0;
> > background-color: transparent; } tr.graytd td { background-color:
> > #000; } </style></head><body><table>";
>
> Did you notice, that your your <body> and <table> are not closed?
> I did not try to parse CSS, but W3C validators should be of great help
> for both markup, and painting and decorating.
>
> --
> Daniel Drozdzewski

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment