css - 如何改变 UI 语义的高度
问题描述
我使用语义 UI 并将视频嵌入到 iFrame 标签中。但我想改变语义 UI 的高度。
<div className="video_box ui embed">
<iframe
width="100%"
height="100%"
src="https://www.youtube.com/embed/tkLLGHa8XuI?start=23"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
这是我的 css 文件。我想在这里改变高度
video_box {
display: flex;
width: 50%;
height: 500px; /*This is not working*/
margin-right: 10px;
align-items: center;
}
解决方案
您还需要设置 iframe 的高度,所以:
.iframe, .video_box {
height: 500px;
};
推荐阅读
- javascript - 如何在 vuetify 中创建一个 fab 按钮?
- installation - Mint Linux 找不到分配的 ssd 磁盘空间
- cpu-architecture - 程序计数器如何不受多个时钟周期的影响
- mysql - SQL查询以获取相关ID位于数组中的表中的所有不同单词
- mysql - 创建连接多个表的视图
- javascript - 在带有按钮的vue中跟随链接
- xml - 使用 xsl:param 在 xsl:template 中选择属性
- sql - Oracle 12c 修改子表中的记录,包括插入、更新、删除
- javascript - 数字加逗号后进行计算
- hive - 从 hive 中的文本列中提取子字符串