docs: add note on video/media attrs. (#1559)

* docs: add note on video/media attrs.

* update: refine decription.

Co-authored-by: 沈唁 <52o@qq52o.cn>
This commit is contained in:
Koy 2021-05-09 09:14:32 +08:00 committed by GitHub
parent 37d9f0e121
commit 043c9c9f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,11 @@ Example:
If you embed the file as `iframe`, `audio` and `video`, then you may need to set the attributes of these tags.
?> Note, for the `audio` and `video` types, docsify adds the `controls` attribute by default. When you want add more attributes, the `controls` attribute need to be added manually if need be.
```md
[filename](_media/example.mp4 ':include :type=video controls width=100%')
```
```markdown
[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px')
```