Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adjusting the height in iPhone Safari
Message
De
02/05/2017 12:39:22
 
 
À
02/05/2017 02:53:04
Information générale
Forum:
Javascript
Catégorie:
IFrame
Divers
Thread ID:
01650761
Message ID:
01650787
Vues:
21
Multiple div insertions would do it.
<style>
.IFrameContainer
{
   position: absolute;
   top: 40;
   width: 100%;
}

.IFrameContainerScroll
{
   overflow: hidden;
   width: 100%;
   -webkit-overflow-scrolling: touch;
}

.IFrameMobile
{
   width: 100%;
   border: none;
}
</style>

<div class="IFrameContainer">
<div class="IFrameContainerScroll" id="IFrameContainerScroll">
<iframe src="MyUrl" ID="Mobile" class="IFrameMobile">
</iframe>
</div>
</div>
...and, then, some javascript code which is executed on load:
function ResizeEnvironment()
{
   BrowserDimension()
   lnHeight=nBrowserHeight
   lnHeight2=lnHeight-34
   document.getElementById("IFrameContainerScroll").style.height=lnHeight2+"px"
   document.getElementById("Mobile").style.height=lnHeight2+"px"
}
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform