diff options
author | Scott Main <smain@google.com> | 2011-04-15 17:55:33 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2011-04-15 17:55:33 -0700 |
commit | 6669f251391d7e61a6ea55e2538c941f82514dd9 (patch) | |
tree | eda2309564dfd7e20990cc7bb10ec945727f95a3 /docs/html/guide/webapps | |
parent | d284a8676e002a72b66d321402ec7f4ed61c7915 (diff) | |
download | frameworks_base-6669f251391d7e61a6ea55e2538c941f82514dd9.zip frameworks_base-6669f251391d7e61a6ea55e2538c941f82514dd9.tar.gz frameworks_base-6669f251391d7e61a6ea55e2538c941f82514dd9.tar.bz2 |
docs: fix snippet errors in web doc
Change-Id: I65648136c2df4bde5fa3bc3495f5166c4c87fe8a
Diffstat (limited to 'docs/html/guide/webapps')
-rw-r--r-- | docs/html/guide/webapps/targeting.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/guide/webapps/targeting.jd b/docs/html/guide/webapps/targeting.jd index bdc2d5e..46f769c 100644 --- a/docs/html/guide/webapps/targeting.jd +++ b/docs/html/guide/webapps/targeting.jd @@ -368,14 +368,14 @@ that the hdpi device shows a different image that's applied in CSS.</p> } @media screen and (-webkit-device-pixel-ratio: 1.5) { - // CSS for high-density screens + /* CSS for high-density screens */ #header { background:url(high-density-image.png); } } @media screen and (-webkit-device-pixel-ratio: 0.75) { - // CSS for low-density screens + /* CSS for low-density screens */ #header { background:url(low-density-image.png); } @@ -426,7 +426,7 @@ target to affect how your web page is scaled for different screen densities.</p> <pre> if (window.devicePixelRatio == 1.5) { alert("This is a high-density screen"); -} else if (window.devicePixelRation == 0.75) { +} else if (window.devicePixelRatio == 0.75) { alert("This is a low-density screen"); } </pre> |