2020年3月11日 星期三

RWD(Responsive Web Design) 設計常用斷點

覺得這個之後會常用,總之先記錄起來。

@media screen and (max-width1200px) { }
@media screen and (max-width992px) { }
@media screen and (max-width768px) { }
@media screen and (max-width680px) { }
@media screen and (max-width480px) { }
@media screen and (max-width320px) { }

別忘了要在 <head> 裡加上
<meta name="viewport" content="width=device-width, initial-scale=1.0" />