如何在引导程序中创建自定义视频嵌入比例?

问题描述 投票:0回答:1
css bootstrap-4
1个回答
0
投票

使用以下公式添加您的比例:

.embed-responsive-XbyY {
  padding-top: 100% * Y / X;
}

您的情况:

.embed-responsive-4by5 {
  padding-top: 125%;
}
© www.soinside.com 2019 - 2024. All rights reserved.