需求: 客戶爲了向展示更多信息,要求把瀏覽器頭部的菜單都給屏蔽掉,留出更多的空間, 當然F11 瀏覽器全屏模式可以解決,但是客戶說 NO, 所以就定義了一個 高寬都是 100%的頁面,再把想要的東西嵌套進去,看代碼。</span>
<!DOCTYPE html>
<html style=="height:100%;height:100%;">
<head>
<title>111</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<HTA:application id="main" applicationName="Test HTA" />
<style>
*{
width:100%;
height:100%;
margin:0px;
padding:0px;
border:0px;
}
</style>
</head>
<body style="overflow:hidden">
<iframe src="http://localhost:8080/login.jsp" ></iframe>
</body>
</html>