Created
January 17, 2012 04:00
-
-
Save onjiro/1624568 to your computer and use it in GitHub Desktop.
画面いっぱいを2画面に表示するサンプル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
<!-- | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html, body { | |
height: 100%; | |
overflow: none; | |
} | |
html { | |
width: 200%; | |
} | |
body { | |
width: 100%; | |
} | |
p { | |
width: 50%; | |
height: 100%; | |
float: left; | |
} | |
p:nth-child(even) { | |
background-color: #fff; | |
} | |
p:nth-child(odd) { | |
background-color: #aaa; | |
} | |
body:after { | |
clear: both; | |
} | |
--> | |
</style> | |
</head> | |
<body> | |
<p>hoge</p> | |
<p>hoge</p> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment