摘要: 1.多个选择器可能会选择同一个元素,有3个规则,从上到下重要性降低: !important的用户样式 !important的作者样式 作者样式 用户样式 浏览器定义的样式 2. CSS规范为不同类型的选择器定义了特殊性权重,特殊性权重越高,样式会被优先应用。 权重设定如下: html选择器,权重为1 阅读全文
posted @ 2016-08-13 13:39 Jweib 阅读(7395) 评论(0) 推荐(0) 编辑
摘要: .bottom_xf{ background-color:#1D69A9; width:100%; height:2.8em; margin:0 auto; overflow:hidden; position: fixed; bottom:0;} 阅读全文
posted @ 2016-08-13 13:34 Jweib 阅读(12999) 评论(0) 推荐(1) 编辑