jQuery MiniUI
标题:
Layout设置高度100%后不显示
[打印本页]
作者:
Krison_LY
时间:
2021-10-8 15:06:25
标题:
Layout设置高度100%后不显示
官方在线示例中,Layout设置高度100%无法显示?style="width:100%;height:100%;"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Layout</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link href="../demo.css" rel="stylesheet" type="text/css" />
<script src="../../scripts/boot.js" type="text/javascript"></script>
</head>
<body>
<h1>Layout 布局器</h1>
<div id="layout1" class="mini-layout" style="width:100%;height:100%;">
<div title="north" region="north" height="80" showSplitIcon="true" >
north
</div>
<div title="center" region="center" >
</div>
</div>
<script type="text/javascript">
mini.parse();
var layout = mini.get("layout1");
</script>
</body>
</html>
作者:
happylover1278
时间:
2021-10-8 15:44:07
你给子元素设置了100% ,父元素没有设置高度啊
<body style="height: 100%;">
复制代码
这是你布局的问题吧
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2