summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2011-04-15 18:03:14 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-15 18:03:14 -0700
commit1f07f1257b62f2ac71696bb430f9328597c3de27 (patch)
tree8a7b040fd556c51b0995d56f7e7d1b25fd82fb31 /docs
parentf6f87c985989603139b31df663f9f9a90543cacc (diff)
parent6669f251391d7e61a6ea55e2538c941f82514dd9 (diff)
downloadframeworks_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.jd6
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>
}
&#64;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);
}
}
&#64;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>