Howdy! How can we help you?
在岛书中嵌入网页B站优酷岛影像中心视频
1.获取B站视频代码,优酷类似, PHOTOS分享的播放链接也可以
首先,将视频传到B站。点击分享按钮,点击“嵌入代码”,会自动复制
- 会得到一段这样的代码:
<iframe src="//player.bilibili.com/player.html?aid=386039146&bvid=BV1Ed4y1Q7n7&cid=778298154&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
- 如果把这段代码,直接嵌入到WordPress里,播放界面会很丑。
- 解决方法,在allowfullscreen=”true”的后面,留1个空格,添加这段代码:
style="width: 100%; height: 500px; max-width: 100%;align:center; padding:20px 0;"
- 最后,代码变成这样:
<iframe src="//player.bilibili.com/player.html?aid=386039146&bvid=BV1Ed4y1Q7n7&cid=778298154&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 500px; max-width: 100%;align:center; padding:20px 0;"> </iframe>
2. 嵌入到WordPress里
- 插入代码后,点击“预览”
- 就可以看到会随着屏幕自动调整的视频。
2.嵌入网页方法类似,注意网页地址要是https开头的。
3.带滚动条的内嵌网页,方法一样,scrolling=”yes”
<iframe src="https://www.rishiqing.com/share/doc/ffae7c674ee74844a441fdf1ad459cea" style=" margin: 10px 0 0 1px;" width="976" height="1530" scrolling="yes" allowtransparency="no"></iframe>
<iframe src="https://www.rishiqing.com/share/doc/ffae7c674ee74844a441fdf1ad459cea" style=" margin: 10px 0 0 1px;" width="976" height="1530" scrolling="yes" allowtransparency="no"></iframe>
<iframe src="https://zoo.diqidiqi.cn:10001/?launchApp=SYNO.VideoController2.Application&SynoToken=--------&launchParam=player_id%3Dstreaming%26browse_type%3Dfilevideo%26video_type%3Dfilevideo%26is_drive%3Dtrue%26drive_path%3Did%253A717195160538101778" style=" margin: 10px 0 0 1px;" width="976" height="1530" scrolling="yes" allowtransparency="no"></iframe>