1 居中
height 50px ,同時設置line-hight 50px
2 圖片添加描邊
border-style:solid;
border-width: 3px;
border-color:#fef7b6;
3 輪播界面
組合設置lineHeight 的固定高度
4 在js 開發中有涉及字符串的 undfine,null,"" 的判斷,如果挨個判斷會生成很長一段代碼,
比如:value === null 或者value.lenghth === 0 或者 value === undifined 我們可以一段代碼解決問題
if(value){
return true
} else{
return false
}
參考
https://codeday.me/bug/20170228/624.html
後面待續