嗨,我有一个这样的主页。
html视图
<html>
<head>
</head>
<body>
<div class="wrapper">
<div class="content">
<ui:include src="/templates/include/header.xhtml"/>
<div class="left_menu">
<ui:include src= />
</div>
<div class="content_container">
<ui:insert name="body">Body</ui:insert>
</div>
</div>
<div class="footersathi">
<ui:insert name="footer">footer</ui:insert>
</div>
</div>
</body>
</html>
html视图结束
css
.wrapper {
min-height:100%;
position:relative;
}
.content {
margin:0;
padding-bottom:20px;
}
.left_menu {
position: absolute;
top: 0px;
left: 0px;
}
.content_container {
position: absolute;
top: 176px;
left: -15px;
}
.footersathi {
width:100%;
height:20px;
position:absolute;
bottom:0;
left:0;
background:blue;
}
css 结束
问题是因为 iam 使用ui:insert name=body标记 iam 包含名称正文的页面有些页面内容较少,有些页面内容较多,但页脚相对于该内容没有变化,而是固定到特定位置可能有使用 ui:insert 时可以帮助我解决此问题。