« ワードプレス | メイン | CSS3 いろいろ回転とか »
2013年09月13日
画面サイズでスタイル変える
にゅー勉強不足ちゃん
@media screen and (min-width: 600px) and (max-width: 900px) {
.three {
background: #9CF;
}
span.bt600-900 {
display: inline-block;
}
}//スマホ向けに・・・max-device-width:も使えるとな!
@media screen and (max-device-width: 480px) {
.iphone {
background: #ccc;
}
}
投稿者 muuming : 2013年09月13日 18:28