网页的设计的样式都由 css 控制, 我们的 css 大小单位,一般用 px,或 rem,或 vw,vh.由 px 控制的大小是固定的,不具有响度式的.响应式设计一般由两种方案实现.一.rem 方案.实现方法 :1.head 中加 2.引入 flexible.js 内容如下(function flexible(window, document) {
function resetFontSize() {
const size = (document.documentElement.clientWidth / 1920) * 37.5;//1920 为设计稿宽度
docum……