LoginSignup
1
0

CSSでPCとスマートフォンを区別

Posted at

時々、違う設備によって、仕様も変わります。
その時は下記を参照してください

/* if device has a touch screen /
@media (any-pointer: coarse) {
/
do your own styles */
.css class name{
background-color:red;
}
}

/* if device has no touch screen /
@media (any-pointer: fine) {
/
do your own styles */
.css class name{
background-color:green;
}
}

1
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
1
0