Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<script type="text/javascript">
var theWidth, theHeight;
// Window dimensions:
if (window.innerWidth) {
theWidth=window.innerWidth;
}
else if (document.documentElement && document.documentElement.clientWidth) {
theWidth=document.documentElement.clientWidth;
}
else if (document.body) {
theWidth=document.body.clientWidth;
}
if (window.innerHeight) {
theHeight=window.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight) {
theHeight=document.documentElement.clientHeight;
}
else if (document.body) {
theHeight=document.body.clientHeight;
}
if(theHeight<500) theHeight=500;
document.getElementById("hiddenbox").value=theHeight;
</script>
$height=$_SESSION[height]-262;
$u_agent = $_SERVER['HTTP_USER_AGENT']; //Check browser if IE
$ub = False;
if(preg_match('/MSIE/i',$u_agent)){
$ub = True;
}
if($ub==true){
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
}
adrian каза:HTML:html, body, #wrapper { heigth: 100%; }
За да ти работи height: 100% за цялата страница просто трябва да сложиш и на html и body височината да е 100%
А IE :?shterev каза:[css]html, body {
height: 100%;
}
#content {
min-height: 100%;
}[/css]
Дано си се ориентиралИ работи.