摘要:
一、meta标签的设置:视口1:1比例、禁止用户缩放 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 二、dpr : 设备像素比例: 阅读全文
摘要:
一、媒体查询:由设备类型、监测设备特性表达式构成。 1)语法: @media 设备类型[all\screen] and (条件表达式){ css样式 } 注:and两侧必须有空格 not放在设备类型的前面(反向选择【排除某个范围】) 2)媒体查询的作用:做样式微小调整 例如:浮动、显示隐藏、文本大小 阅读全文