ionic3 ios 雜記

 1.  ionic cordova resources 經常卡住不動,卡住了就撤銷,果斷的撤銷,重新試試,試到ok

2。只是修改業務代碼的話,只需要將根目錄www下的內容拷貝到platform下的www就好,不需要每次打包

3。ios使用hot-code-plugin熱更新插件不行 ,會報錯。

4.關於適配:使用rem,設計上是多少值就是多少值*0.01=XXrem

/* iphone5 寬度 320 */
@media screen and (min-width:300px) and (max-width:340px){
    html{font-size:45px;}
}
/* iphone6,7,8,x 寬度 375 13.89*/
@media screen and (min-width:341px) and (max-width:410px){
    html{font-size:50px;}
}
/* iphone6,7,8plus 寬度 414*/
@media screen and (min-width:411px) and (max-width:600px) {
    html{font-size:55px;}
}
/* ipad 寬度 768*/
@media screen and (min-width:601px) and (max-width:780px){
    html{font-size:75px;}
}
/* ipad pro 寬度 1024*/
@media screen and (min-width:781px) {
    html{font-size:85px;}
}

5.ipad上modal不會鋪滿,自己寫個樣式覆蓋ionic樣式就好

//ipad modal
.modal-wrapper{
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章