## css規范
* **樣式與內容分離,禁止行內樣式,禁止將樣式寫成單行**
* **不用標簽做樣式篩選,避免使用通配規則**。Eg:.header span{ color: #fff }
* **不建議用標簽名或者css樣式定義class名稱**
*****
* **注意css書寫順序:是否可見->是否清除浮動->盒子->文本->過度及動畫**
1. 定位屬性:position? display? float? left? top? right? bottom? ?overflow? clear? ?z-index
2. 自身屬性:width? height? padding? border? margin? ?background
3. 文字樣式:font-family? ?font-size? ?font-style? ?font-weight? ?font-varient? ?color? ?
4. 文本屬性:text-align? ?vertical-align? ?text-wrap? ?text-transform? ?text-indent? ? text-decoration? letter-spacing? ? word-spacing??white-space? ?text-overflow
5. css3中新增屬性:content? ?box-shadow? ?border-radius? transform…
*****
* **如果屬性值可以為none,避免屬性值0的寫法(禁止向0后添加單位)。eg:border: 0px, border: none**
* **常用的屬性可以單獨拎出來定義公共class**
* **選擇器與屬性名的:后必須要有空格,前禁止加空格**,eg:.hotel-content { color: #fff }