HW
HW留言 | 贡献 (创建页面,内容为“<div class="bilibili-player-link">'''[[https://m.bilibili.com/video/{{{BV}}}?t={{{时间|0}}}&page={{{分P|1}}} {{{标题}}}]] '''</div> <div class="iframe-container"> <htmltag tagname="iframe" class="iframe_video" src="//player.bilibili.com/player.html?bvid={{{BV}}}&p={{{分P|1}}}&autoplay=0&t={{{时间|0}}}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></htmltag> </div> {{#css: .bilibili-player-link { text-align: cen…”)
 
HW
HW留言 | 贡献
第16行: 第16行:
     text-decoration: underline;
     text-decoration: underline;
}
}
.iframe-container .iframe_video {
    position: relative;
    width: 100%;
}
@media only screen and (max-width: 767px) {
    .iframe-container .iframe_video {
        height: 15em;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .iframe-container .iframe_video {
        height: 20em;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .iframe-container .iframe_video {
        height: 30em;
    }
}
@media only screen and (min-width: 1200px) {
    .iframe-container .iframe_video {
        height: 40em;
    }
}
.iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%
}
.iframe-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}


}}
}}
第23行: 第69行:
<noinclude>
<noinclude>
== 使用说明 ==
== 使用说明 ==
调用格式:
调用格式:
<nowiki>
{{视频
{{视频
|BV=视频BV号
|BV=视频BV号
第30行: 第78行:
|时间=开始秒数(可选,默认0)
|时间=开始秒数(可选,默认0)
}}
}}
 
</nowiki>
示例:
{{视频
|BV=BV1xx411c7mK
|标题=测试视频
|分P=2
|时间=60
}}
</noinclude>
</noinclude>