怎么制作html5网站页面让它适应电脑和手机的尺寸

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代码。
原文地址:https://www.cnblogs.com/LuoEast/p/6817220.html