@@ -79,9 +79,9 @@ cursor:not-allowed;
79
79
font-family :"Hiragino Sans GB","Hiragino Sans GB W3",'微软雅黑';
80
80
```
81
81
82
- - 省略号
82
+ - 文字过多后显示省略号
83
83
```css
84
- .ellipsis {white-space :nowrap ;overflow :hidden ;text-overflow :ellipsis }
84
+ .ellipsis , .ell {white-space :nowrap ;overflow :hidden ;text-overflow :ellipsis }
85
85
```
86
86
87
87
#### 2. css 3
@@ -213,7 +213,41 @@ user-select:none
213
213
-moz-user-select:none;
214
214
-webkit-user-select:none;
215
215
-ms-user-select:none;
216
+ ```
217
+ - [模糊(毛玻璃)效果1 ](http://www.zhangxinxu .com/wordpress/2013/11/%E5%B0%8Ftip-%E4%BD%BF%E7%94%A8css%E5%B0%86%E5%9B%BE%E7%89%87%E8%BD%AC%E6%8D%A2%E6%88%90%E6%A8%A1%E7%B3%8A%E6%AF%9B%E7%8E%BB%E7%92%83%E6%95%88%E6%9E%9C/)
218
+ - [模糊(毛玻璃)效果2 ](http://mao.li/css3-blur-filter-pratice /)
219
+ - [模糊(毛玻璃)逼真效果 ](http://codepen.io/ariona/pen/geFIK)
220
+ ```css
221
+ .blur {
222
+ -webkit-filter : blur (10px ); /* Chrome, Opera */
223
+ -moz-filter : blur (10px );
224
+ -ms-filter : blur (10px );
225
+ filter : blur (10px );
226
+ }
227
+ ```
228
+ ``` html
229
+ <img src =" mm1.jpg" />
230
+ <img src =" mm1.jpg" class =" blur" />
231
+ ```
232
+
233
+ - 显示旋转加载图片,[ 下拉加载数据] ( https://github.com/chalecao/chale/blob/master/iscroll.js )
234
+ ``` css
235
+ #pullDown .pullDownIcon {display :inline-block ;vertical-align :middle ;width :40px ;height :40px ;background :url (https://github.com/chalecao/chale/blob/master/pull-icon%402x.png ) 0 0 no-repeat ;-webkit-background-size :40px 80px ;background-size :40px 80px ;-webkit-transition-property :-webkit-transform ;-webkit-transition-duration :250ms }
236
+ #pullDown .pullDownIcon {-webkit-transform :rotate (0deg ) translateZ (0 )}
237
+ #pullDown .pullDownLabel {display :inline-block ;vertical-align :middle ;margin-left :5px ;}
238
+ #pullDown .flip .pullDownIcon {-webkit-transform :rotate (-180deg ) translateZ (0 )}
239
+ #pullDown .loading .pullDownIcon {background-position :0 100% ;-webkit-transform :rotate (0deg ) translateZ (0 );-webkit-transition-duration :0ms ;-webkit-animation-name :loading;-webkit-animation-duration :2s ;-webkit-animation-iteration-count :infinite ;-webkit-animation-timing-function :linear }
240
+ @-webkit-keyframes loading {
241
+ from {-webkit-transform :rotate (0deg ) translateZ (0 )}
242
+ to {-webkit-transform :rotate (360deg ) translateZ (0 )}
243
+ }
244
+
216
245
```
217
246
247
+ ``` html
248
+ <div id =" pullDown" class =" none loading" >
249
+ <span class =" pullDownIcon" ></span ><span class =" pullDownLabel" >正在载入中...</span >
250
+ </div >
251
+ ```
218
252
219
253
0 commit comments