可引入html来设置
视频嵌入
YOUTUBE TEST
1 | <iframe width="560" height="315" src="https://www.youtube.com/embed/7OYkWSW7u4k" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
BILIBILI TEST
1 | <iframe width="300" height="176" src="//player.bilibili.com/player.html?aid=7728624&cid=12668755&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> |
音乐嵌入
framespacing=”0”
框架与框架间保留的空白的距离
frameborder – 设定框架的边框,取值为(1|0),缺省值为1
1 – 在每个页面之间都显示边框
0 – 不显示边框
border=”0”
设定框架的边框厚度,以 pixels 为单位
auto=”0”
0为不自动播放
1为自动播放
1 | <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=694286&auto=0&height=66"></iframe> |
图片嵌入
普通嵌入
1 | ![test](https://raw.githubusercontent.com/yleao/static-resource/main/image/20180802/01.jpg) |
固定大小且居中
1 | <div align=center><img width = '150' height ='150' src ="https://raw.githubusercontent.com/yleao/static-resource/main/image/20180802/01.jpg"/></div> |
自定义尺寸
1 | <img width = '40' height ='150' src ="https://raw.githubusercontent.com/yleao/static-resource/main/image/20180802/01.jpg"/> |