【问题标题】:the Iframe css style is not working on the Iphone, how to fix this?Iframe css 样式在 Iphone 上不起作用,如何解决这个问题?
【发布时间】:2021-04-26 03:53:26
【问题描述】:

我将 iframe 高度设置为 200 像素,宽度设置为我为 iframe 设置的布局的 100% 在 android 中它工作正常,但在 Iphone(我有)中,css 代码不起作用,结果是:iram 占用其内容的全部高度和宽度。这让一切都搞砸了 这是代码:

    <!-- css code -->
<style>
 .pc1s1iframe{ 
    width: 100%;
    background-color: white;
    height: 200px;
}
</style>

<!-- html code --> 
<div class="pc1s1">
  <h3 class="pc1s1Title">1rst semester</h3>
  <iframe class="pc1s1iframe" src="https://drive.google.com/embeddedfolderview? 
  id=1lyEGBCoXoACwwu8DOYbkUwHl1rrO_9rh" frameborder="0"></iframe>
</div>    

【问题讨论】:

标签: html css


【解决方案1】:

也许在你的 .pc1s1iframe 上尝试这样的事情

.pc1s1iframe {
  width: 1px;
  min-width: 100%;
  background-color: white;
  height: 200px;
}

【讨论】:

    猜你喜欢
    • 2019-11-21
    • 2020-04-08
    • 2014-06-19
    • 1970-01-01
    • 2013-07-31
    • 2014-01-28
    • 1970-01-01
    • 1970-01-01
    • 2015-11-10
    相关资源
    最近更新 更多