【发布时间】:2016-01-17 23:36:51
【问题描述】:
我使用 Oracle jDeveloper 创建了一个登录页面。目前,它出现在左上角。如何使该页面沿 x 轴和 y 轴居中(将面板框放在中间)?这是screenshot,代码如下所示。
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html>
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<af:document title="untitled1.jsf" id="d1">
<af:form id="f1">
<af:panelBox text="Login"
inlineStyle="width:260px;" id="pb1">
<table>
<tbody>
<tr>
<td>
Username
</td>
<td>
<input type="text" id="j_username" name="j_username"/>
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<input type="password" id="j_password"
name="j_password"/>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input id="login" type="submit" value="Log In" />
</td>
</tr>
</tbody>
</table>
</af:panelBox>
</af:form>
</af:document>
</f:view>
【问题讨论】:
标签: jsp jsf oracle-adf