最新回答 / 慕函數(shù)4542246
clientWidth / n = font-size, font-size * rem = 最終的像素值.
跟著老師做的,筆記地址:https://www.xpsilvester.com/2018/04/22/mobileDev/
Github項目源代碼地址:https://github.com/xpsilvester/Project/tree/master/Web/WebMoblie
大家可以參考一下~
Github項目源代碼地址:https://github.com/xpsilvester/Project/tree/master/Web/WebMoblie
大家可以參考一下~
2018-04-22
跟著老師做的,筆記地址:https://www.xpsilvester.com/2018/04/22/mobileDev/
Github項目源代碼地址:https://github.com/xpsilvester/Project/tree/master/Web/WebMoblie
大家可以參考一下~
Github項目源代碼地址:https://github.com/xpsilvester/Project/tree/master/Web/WebMoblie
大家可以參考一下~
2018-04-22
你是真扯,寫個rem搞到webpack,還有bundle.js,你是不是的還要用node環(huán)境下打包,編譯么
2018-04-21
最贊回答 / qq_sunshine_460
平面稿的實際像素為什么要除以2呢?不太懂,嘿嘿
用內(nèi)容去撐開反而會影響布局美觀,內(nèi)容的參差不齊撐開的高度也都不相同。設(shè)置統(tǒng)一的寬高,設(shè)置overflow: hidden;超出容器部分隱藏,這樣才是正確的做法
2018-04-15
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>作用是禁用設(shè)備縮放
2018-04-15
最新回答 / whiteosk
視頻中老師的圖標只有一個,他應(yīng)該只是用一個圖標給我們作示范,實際上都是雪碧圖,可以通過background-position和background-size來設(shè)置。比如一張寬40px的雪碧圖,第一個圖標位于雪碧圖左上角可以寫成如下,雪碧圖的第二個圖標則需要自己量取一下第二個圖標的開始位置來改變background-position的值.icon {? ? ?display:inline-block;??????? ? ?width:px2rem(21px);????? height:px2rem(21px...
2018-04-14