Nintendo DSi Browser: Difference between revisions
m →Tips |
mNo edit summary |
||
| Line 137: | Line 137: | ||
# Add the following JavaScript just before the </body> tag: | # Add the following JavaScript just before the </body> tag: | ||
<script>document.body.scrollTop = 176;</script> | <script type="text/javascript">document.body.scrollTop = 176;</script> | ||
Generally the easiest way to accomplish the correct layout is to create HTML elements that "contain" the top and bottom screens. Here's an example: | Generally the easiest way to accomplish the correct layout is to create HTML elements that "contain" the top and bottom screens. Here's an example: | ||
| Line 143: | Line 143: | ||
<html> | <html> | ||
<head> | <head> | ||
<meta name="viewport" content="width=240"> | <meta name="viewport" content="width=240" /> | ||
<style> | <style type="text/css"> | ||
body { margin: 0px; } | body { margin: 0px; } | ||
#topscreen, #bottomscreen { width: 240px; height: 176px; overflow: hidden; } | #topscreen, #bottomscreen { width: 240px; height: 176px; overflow: hidden; } | ||