Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. >
  6. Smartphone: Switching of CSS

Smartphone: Switching of CSS

There are some methodsof switching of CSS.
Let’s think which method is better in your creative case.

Switching by media query.

Demerit: unstable behavior. This method use device width difference. It’s tricky. When width of PC browser is narrow, screen may be show smartphone style.

Switching by User agent.

Reference

レスポンシブデザイン・コーデイングTIPS(1)UAによるCSSの切り替え

comment

Fields with * is required.

go to related tags archive?