我正在尝试在 Sap Web IDE 上创建一个简单的规划应用程序,但我遇到了页脚没有留在底部的问题。
指数:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<link href="https://procensus.com/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Procensus</title>
<script id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-preload="async"
data-sap-ui-compatVersion="edge"
data-sap-ui-resourceroots='{"zapp_rej_absence": "./", "sap.ui.demo.mock": "mockdata"}'>
</script>
<!-- Application launch configuration -->
<script>
sap.ui.getCore().attachInit(function() {
new sap.m.Shell({
app: new sap.m.App({
pages: [
new sap.m.Page({
title: "Procensus Planning Calender",
enableScrolling: true,
content: [ new sap.ui.core.ComponentContainer({
name: "zapp_rej_absence"
})]
})]
})
}).placeAt("content");
});
</script>
</head>
<!-- UI Content -->
<body class="sapUiBody" id="content" role="application">
</body>
XML:
<mvc:View
controllerName="zapp_rej_absence.controller.Main"
xmlns:l="sap.ui.layout"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:commons="sap.ui.commons"
xmlns:core="sap.ui.core"
xmlns:html="http://www.w3.org/1999/xhtml">
<Page
title="{i18n>loginTitle}"
showHeader="true">
<content>
<VBox alignItems="Center" class="sapUiLargeMarginTop">
<Panel backgroundDesign="Solid">
<Image width="auto" height="10em" id="__image1" src="images/logo/Logo_iQos.jpg"
class="sapUiSmallMargin"/>
<VBox alignItems="Center" >
<Input id="user" type="Text" placeholder="{i18n>userName}"/>
<Input id="pass" type="Password" placeholder="{i18n>password}" />
<Button class="sapUiSmallMarginTop" text="Login" width="17em" type="Emphasized" press="_logIn" submit="_logIn" />
</VBox>
</Panel>
</VBox>
</content>
<footer>
<Bar>
<contentLeft>
<Text text="{version>/version} {version>/pool}" /> <!-- major.minot.micro - major keep at 1 until major re-release , minor - increment on new feature ; micro - increment on bug fix or minor feature change -->
</contentLeft>
</Bar>
</footer>
</Page>
*注意:日历需要(据我所知)在 Panel 标签内,这样它就不会消失。由于 Panel 标签上不存在页脚,因此我在关闭 Panel 标签后创建了一个 Page 标签。