摘要:
实现抽出公共类 .html,.body{ } 实现层级 .container .btn{ background:green } .container .btn.active{ background:red } //这里优先级比class引用高,因此通常用于显示某种状态,它覆盖原有的样式,如 //按钮 阅读全文
摘要:
//REM自适应 _resize(); window.addEventListener('resize', _resize, false); function _resize() { var deviceWidth = document.documentElement.clientWidth; document.documentElement.style.fontSize = deviceWid... 阅读全文