Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing browser to auto width and height
Message
De
11/05/2014 15:10:54
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
Dépannage
Titre:
Maximizing browser to auto width and height
Divers
Thread ID:
01599852
Message ID:
01599852
Vues:
59
On one particular page, I cannot understand why I have scrollbars appearing. This code is very simple. If you try it in IE 11, you will see that I have scrollbars appearing, despite the fact that I adjust my table to the browser width and height.
<!DOCTYPE html>

<Html>  

<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+"px"
   loObject.style.height=nBrowserHeight+"px"
}
</script>
If someone can tell me what is wrong, that would be greatly appreciated.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform