Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing browser to auto width and height
Message
De
12/05/2014 08:35:51
 
 
À
12/05/2014 02:33:19
Information générale
Forum:
HTML5
Catégorie:
Dépannage
Divers
Thread ID:
01599852
Message ID:
01599857
Vues:
47
>It appears that both the width and height specify the area of the content, not including margins/borders/... - hence the scrollbars
>
>Subtracting a bit for margins gives no scrollbars
>
><Html>  
><!-- saved from url=(0011)about:blank -->
><body onload="ResizeWindow()"> 
>
><table id="Table1">
><tr>
><td>
></td>
></tr>
></table>
>
></body> 
></Html> 
>
><script>
>function ResizeWindow()
>{
>   nBrowserWidth=window.innerWidth
>   nBrowserHeight=window.innerHeight
>   loObject=document.getElementById("Table1")
>   loObject.style.width=(nBrowserWidth -50)+ "px"
>   loObject.style.height=(nBrowserHeight -50) + "px"
>}
></script>
>
That's what I thought as well. Thanks for confirming.
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