我尝试过简单的登录页面.但是我无法将这些字段对齐到中心位置. h:commandButton与中心对齐.但保持< div align =“center”>时,其余的字段都没有任何变化.
我如何让它们居中对齐?
<div align="center"> <h:message for="btnSubmit"/> <div class='form-row'> <div class='col-xs-2 form-group required'> <label class='control-label'> User Name </label> <h:inputText styleClass="form-control" size="12" maxlength="20" id="userName" value="#{loginController.userName}" required="true"/> </div> </div> <div class='form-row'> <div class='col-xs-2 form-group card required'> <label class='control-label'>Password</label> <h:inputText styleClass="form-control" size="12" maxlength="20" id="password" value="#{loginController.password}" required="true" /> </div> </div> <div class='form-row'> div class='col-md-12 form-group'> <h:commandButton styleClass="btn btn-success" value="#{bundle['label.Login']}" id="btnSubmit" action="#{loginController.clientLoginAction}"/> </div> </div> </div>
解决方法
原文地址:https://www.jb51.cc/jquery/178683.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。