Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8707

メディアクエリ max-width min-widthややこしい

$
0
0

https://www.wakuwakubank.com/posts/443-html-css-media-query/

スクリーンサイズが1000px以下の場合に適用

@mediascreenand(max-width:1000px)

スクリーンサイズが768px以上の場合に適用

@mediascreenand(min-width:768px)

モバイルファースト

最近はモバイルファーストが主流のため、クリーンサイズが拡大していくごとにスタイルを上書きする書き方、つまりmin-widthで記述していくのが主流


Viewing all articles
Browse latest Browse all 8707

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>