LLWiki正在建設中,歡迎加入我們!
「Widget:YouTube」修訂間的差異
跳至導覽
跳至搜尋
(//使用页面/文本对比查看器快速编辑) |
(//使用页面/文本对比查看器快速编辑) |
||
第24行: | 第24行: | ||
} |
} |
||
/* </pre><includeonly> */ |
/* </pre><includeonly> */ |
||
</style><!--{/if}--><iframe allowfullscreen="true" scrolling="no" frameborder=0 data-src="//www.youtube.com/embed/<!--{$id|default:''|escape:url}-->?hl=zh&modestbranding=1&start=<!--{$t|default:0|escape:url}-->"></iframe></includeonly> |
</style><!--{/if}--><iframe allowfullscreen="true" scrolling="no" frameborder=0 src="about:blank" data-src="//www.youtube.com/embed/<!--{$id|default:''|escape:url}-->?hl=zh&modestbranding=1&start=<!--{$t|default:0|escape:url}-->"></iframe></includeonly> |
於 2021年7月22日 (四) 23:43 的修訂
JavaScript腳本:User:Bhsd/widget/player.js(和Widget:Bilibili共用)
CSS樣式表:(和Widget:Bilibili共用)
*/
table.BiliTable {
display: table;
}
@media screen and (max-width:720px) {
.BiliTable div {
width: 100% !important; /* 不能用max-width替代 */
}
table .BiliTable div {
width: 80vw !important;
}
}
.BiliTable div {
padding-top: 75%; /* 长宽比4:3 */
position: relative;
}
.BiliTable iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/*