0
我有兩列的面板網格,我想對準中央的右列文本和左邊的列文本左。如何樣式添加到h:panelGrid的
我嘗試一遍又一遍用它玩,但它仍然不工作
<pe:layoutPane position="south" resizable="false" closable="false" statusbar="true" spacing="0">
<h:panelGrid columns="2" styleClass="left,centered" width="100%">
<h:outputText value="DEV"/>
<h:panelGroup>
<h:outputText value="Developed by "/>
<h:outputLink id="link1" value="mailto:[email protected]" >
<h:outputText value="text" style="text-decoration:underline"/>
</h:outputLink>
</h:panelGroup>
</p:panelGrid>
</pe:layoutPane>
這裏是CSS:
.centered {
margin: 0px auto;
text-align: center;
}
.left {
float: left;
}
任何想法,我怎麼會存檔這樣的佈局?
感謝
這是你想要實現columnClasses =「左,居中」? – StephenMeyer 2012-08-23 12:25:44