当前位置:首页经验分享使用代码嵌入哔哩哔哩播放器到网站

使用代码嵌入哔哩哔哩播放器到网站

使用代码嵌入哔哩哔哩播放器到网站

iframe

<div class="bilibili">
    //要替换的内容
    <iframe src=“”scrolling=”no” border=”0″ frameborder=”no” framespacing=”0″ allowfullscreen=”true”> </iframe>
</div>

完整代码

<div class="bilibili"> <iframe src=”//player.bilibili.com/player.html?aid=541924889&bvid=BV1zi4y1M7TP&cid=381273831&page=1″ scrolling=”no” border=”0″ frameborder=”no” framespacing=”0″ allowfullscreen=”true”> </iframe> </div>

css代码,网站管理员填写

[success].bilibili{ position: relative; width: 100%; height: 0; /*高度设置这里无效,设置为0,用padding撑开div*/ padding-bottom: 75%; /*68%到80%都可以*/ } .bilibili iframe { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }[/success]
版权声明
文章链接: https://dmyblog.cn/10.html
文章标题: 使用代码嵌入哔哩哔哩播放器到网站
声明: 本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,发布本站内容到任何网站。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理

给TA打赏
共{{data.count}}人
人已打赏
经验分享

博客网站下雪特效

2022-6-11 23:51:57

经验分享

WordPress 绑定n个域名绑定指南

2022-6-12 0:10:22

0 条回复 UP文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索