[英]Move the open/close marker of rich:simpleTogglePanel
I have a simpleTogglePanel set up as follows: 我有一个simpleTogglePanel设置如下:
<rich:simpleTogglePanel
headerClass="myHeaderClass"
opened="false"
switchType="client" style="border: 0px;" bodyClass="myBodyClass">
<f:facet name="header">
<h:outputText styleClass="panelHeader" value="#{myBean.header}"></h:outputText>
</f:facet>
<f:facet name="closeMarker">
<h:outputText value="^"/>
</f:facet>
<f:facet name="openMarker">
<h:outputText value=">" />
</f:facet>
Content
</rich:simpleTogglePanel>
I want to move the open/close marker(which I have made ^ and > respectively to the left of the panel. 我想将打开/关闭标记(分别使^和>移到面板的左侧)。
I have tried using float: left in myHeaderClass aswell as float:left !important and float:left;text-align: right. 我已经尝试在myHeaderClass中使用float:left以及float:left!important和float:left; text-align:right。
Nowhere can I find anything that explains how to do this.The styling I found on sites where people were showing functionality of the simpleTogglePanel overall and this seemed to be all I didn't have. 我在任何地方都找不到解释该操作方法的信息。我在人们总体上展示了simpleTogglePanel功能的网站上发现了这种样式,这似乎是我所没有的。
I am using JSF 1.2(Apache MyFaces Implementation) and Richfaces 3.3. 我正在使用JSF 1.2(Apache MyFaces实现)和Richfaces 3.3。
CSS which govern the markers in rich:simpleTogglePanel
is rich-stglpnl-marker
as per RichFaces reference guide (scroll down for Classes names that define a component appearance section) 根据RichFaces参考指南 ,用于控制rich:simpleTogglePanel
标记的CSS是rich-stglpnl-marker
(向下滚动以定义用于定义组件外观部分的Class名称)
rich-stglpnl-marker Defines styles for a wrapper <div> element of a marker
Whereas headerClass
is applicable for header elements only. 而headerClass
仅适用于标头元素。
headerClass applicable to header elements
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.