diff options
author | Scott Main <smain@google.com> | 2011-04-15 18:03:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-15 18:03:14 -0700 |
commit | 1f07f1257b62f2ac71696bb430f9328597c3de27 (patch) | |
tree | 8a7b040fd556c51b0995d56f7e7d1b25fd82fb31 /docs | |
parent | f6f87c985989603139b31df663f9f9a90543cacc (diff) | |
parent | 6669f251391d7e61a6ea55e2538c941f82514dd9 (diff) | |
download | frameworks_base-1f07f1257b62f2ac71696bb430f9328597c3de27.zip frameworks_base-1f07f1257b62f2ac71696bb430f9328597c3de27.tar.gz frameworks_base-1f07f1257b62f2ac71696bb430f9328597c3de27.tar.bz2 |
am 6669f251: docs: fix snippet errors in web doc
* commit '6669f251391d7e61a6ea55e2538c941f82514dd9':
docs: fix snippet errors in web doc
Diffstat (limited to 'docs')
-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> |