https://zhidao.baidu.com/question/918130826792192539.html
用以下代碼開頭:
<!DOCTYPE HTML><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
使用百分比定義寬度,,
CSS代碼可以適當使用:
@media only screen and (max-width:449px){
}
自動根據屏幕像素 調用不同的CSS代碼。