Skip to content

Commit

Permalink
add css
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed May 17, 2016
1 parent e801a3e commit 11de122
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@ AngularJS directive that provide `a boolean value` to know $http hasn't had


##usage:
+ css part:
```css
body {
font-family: 'STHeiti', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

.loading-widget {
width: 100px;
height: 100px;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
position: absolute;
}

.loading-widget,
.loading-widget[data-visible] {
display: none;
}

.loading-widget[data-visible=true] {
display: block;
}

.loading-widget img {
width: 100%;
height: 100%;
}
```
+ html part:
```html
<div class="loading-widget"
Expand Down

0 comments on commit 11de122

Please sign in to comment.