Created
June 27, 2016 14:46
-
-
Save YasuakiHirano/ad3aeb1577301d46269fc81475a956f5 to your computer and use it in GitHub Desktop.
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
/*--デスクトップサイズ--*/ | |
body { | |
background:black; | |
color:#ffffff; | |
} | |
#pcSize{ | |
font-size:250%; | |
display:block; | |
} | |
#tabSize{ | |
font-size:250%; | |
display:none; | |
} | |
#smartSize{ | |
font-size:250%; | |
display:none; | |
} | |
/*--主にタブレットサイズ--*/ | |
@media screen and (max-width: 1024px) { | |
body { | |
background-color:olive; | |
} | |
#pcSize{ | |
font-size:250%; | |
display:none; | |
} | |
#tabSize{ | |
font-size:250%; | |
display:block; | |
} | |
#smartSize{ | |
font-size:250%; | |
display:none; | |
} | |
} | |
@media screen and (max-width: 768px) { | |
body { | |
background-color:blue; | |
} | |
#pcSize{ | |
font-size:250%; | |
display:none; | |
} | |
#tabSize{ | |
font-size:250%; | |
display:block; | |
} | |
#smartSize{ | |
font-size:250%; | |
display:none; | |
} | |
} | |
/*--主に下記スマホ--*/ | |
@media screen and (max-width: 480px) { | |
body { | |
background-color:cyan; | |
} | |
#pcSize{ | |
font-size:250%; | |
display:none; | |
} | |
#tabSize{ | |
font-size:250%; | |
display:none; | |
} | |
#smartSize{ | |
font-size:250%; | |
display:block; | |
} | |
} | |
@media screen and (max-width: 320px) { | |
body { | |
background-color:gold; | |
} | |
#pcSize{ | |
font-size:250%; | |
display:none; | |
} | |
#tabSize{ | |
font-size:250%; | |
display:none; | |
} | |
#smartSize{ | |
font-size:250%; | |
display:block; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment