Skip to content

Commit

Permalink
Update README-zh_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikli2009 committed Jan 18, 2019
1 parent 6e348a2 commit d8b8a0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ Vue.use(VueImgOrientationChanger)
<img v-img-orientation-changer src="https://user-images.githubusercontent.com/10917606/51309472-735aa580-1a7f-11e9-8081-67ced9a3f536.jpeg">
```

` TIPS: 已经应用指令的图片元素 会有一个属性 [data-orientation], 这个属性会获得 图片的exif信息中的orientation部分`

```
// 最终的DOM 结果如下:
// 代表这个图片的orientation 是 6, 可以参照一下上面的对照图
<img data-orientation="6" src="https://user-images.githubusercontent.com/10917606/51309472-735aa580-1a7f-11e9-8081-67ced9a3f536.jpeg">
```

## 协议

[MIT](LICENSE)
Expand Down

0 comments on commit d8b8a0a

Please sign in to comment.