VS code 與 rem

使用rem,是相對於html的font-size大小;css 我習慣把html的font-size設置爲10px,比較好計算rem值;html html{ font-size: 10px;} VS code有一款插件,能夠自動計算rem值 : "cssrem",安裝好之後,須要重啓VS code。效果是這樣的:spa 因爲默認計算值爲16,也就是以16px爲計算單位,實際狀況與默認值不一樣。一樣須
相關文章
相關標籤/搜索