LoginSignup
0
0

More than 1 year has passed since last update.

CSS忘備録 ~メディアクエリでデバイス対応

Last updated at Posted at 2022-09-20

メディアクエリを用いてウィンドウの幅ごとに要素のCSSを変えていくコードになります。
かなりゴリ押しぽい手法です。
機械にデザインはわからないからしょうがないね

/*-----------------------------------------------------------
共通
-------------------------------------------------------------*/

/*-----------------------------------------------------------
携帯 1023px以下
-------------------------------------------------------------*/
@media screen and (max-width:1023px) { 

}
/*-----------------------------------------------------------
PC 1024px以上
-------------------------------------------------------------*/
@media screen and (min-width:1024px) {
   
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0