簡體   English   中英

Iframe css 樣式在 Iphone 上不起作用,如何解決這個問題?

[英]the Iframe css style is not working on the Iphone, how to fix this?

我將 iframe 高度設置為 200 像素,寬度設置為我為 android 中的 ifra 設置的布局的 100%,它工作正常,但在 Iphone(我擁有)中,ZC7A628CBA22E2A28EB17B5F5C 結果是: ifra 采用其內容的完整高度和寬度。 這使得一切都搞砸了這是代碼:

    <!-- 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>    

也許在你的.pc1s1iframe上嘗試這樣的事情

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM