html - 为什么`backface-visibility:hidden` 在 iframe 上不起作用?
问题描述
背面可见性不会隐藏 iframe 背面
我创建了一个两边都有 iframe 元素的翻转框,当翻转时,正面的 iframe 将覆盖背面的 iframe,应用backface-visibility: hidden
不会隐藏它的背面,虽然它应该是:
<div class="flip3D">
<div class="front">
<iframe id ="frame" width="auto" height="auto" src="https://www.youtube.com/embed/wZZ7oFKsKzY?enablejsapi=1" frameborder="0">
</iframe>
</div>
<div class="end">
<iframe width="80%" height="80%" src="https://www.youtube.com/embed/tgbNymZ7vqY" frameborder="0"></iframe>
</div>
</div>
我可以通过使前端 iframe 可见性来解决此问题:悬停时隐藏。但
问题:为什么backface-visibility
不工作iframe
?
解决方案
你失踪了transform-style:preserve-3d;
?
推荐阅读
- image - 如何使用卫星图像检测地表作物成熟度或压力?
- python - 在Python中将字符串拆分为字典
- flutter - 如何在构建方法中使用状态管理?
- java - 如何使用彩色按钮作为用户选择从第二个活动更改我的 MainActivity 的背景颜色?
- ruby-on-rails - 如何使用 Rails 将 ISO 8601 日期转换为整数
- reactjs - ReactJs --- 向儿童发送道具导致儿童渲染出现问题。UI 渲染未发生“NewsLatest.js”
- python - 为什么 randomize 的输出结果重复相同?
- html - 修复移动设备上动画下划线的宽度
- node.js - 如何在猫鼬的同一个文件中导出多个模式
- dynamics-crm - 在 Dynamics CRM Online 中通过 Web API 创建记录时未声明的属性