最新回答 / fengyw
噢噢,我明白了,那個function只是用來返回一個正確的倍數(shù)的
最新回答 / 等一個晴天
let w = document.documentElement.clientWidth || document.body.scrollWidth;改成let w = document.documentElement.clientWidth || document.body.clientWidth?;再試試
2018-11-06
我完整的實現(xiàn)了一遍,如需要源碼,可以下載 https://github.com/jiechud/notes/tree/master/html/Demo/rem 如果幫助,歡迎 star
2018-11-03
最新回答 / 慕粉128
@function?px2rem($px){ ??$rem?:?41.4px; ??@return?($px?/?$rem)?+?rem; }
//獲取視窗寬度 let?htmlWidth?=?document.documentElement.clientWidth?||?document.body.scrollWidth; console.log(htmlWidth); //獲取視窗高度 le...
最新回答 / 小白阿比i
https://blog.csdn.net/u014182411/article/details/77319639 ,打開鏈接安裝好ruby和sass<...圖片...>打開Hbuilder像圖片這樣設(shè)置好。就可以了命令參數(shù):”--no-cache %FileName% ../css/%FileBaseName%.css --style expanded“
2018-10-07
已采納回答 / 陳默有言
可忽略
沒看懂什么意思,不是說自動修改HTML根元素字體大小嗎,為什么sass里面的function又固定37.5px,不是應(yīng)該自動修改的嗎?
2018-09-15
沒看懂什么意思,不是說自動修改HTML根元素字體大小嗎,為什么sass里面的function又固定32px?
2018-09-15