0
如何控制rich:combobox下拉按钮的位置? 默认情况下,它位于文本元素的右侧。我希望它位于文本元素的左侧。rich:comboBox按钮位置
如何控制rich:combobox下拉按钮的位置? 默认情况下,它位于文本元素的右侧。我希望它位于文本元素的左侧。rich:comboBox按钮位置
您可以参考官方文档,查看哪些样式类名称可用于定制<rich:combobox>
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_comboBox.html。
我尝试使用此设置和下拉按钮位于现在左侧:
<rich:comboBox>
<f:selectItem itemValue="suggestion 1"/>
<f:selectItem itemValue="suggestion 2"/>
<f:selectItem itemValue="suggestion 3"/>
<f:selectItem itemValue="suggestion 4"/>
<f:selectItem itemValue="suggestion 5"/>
</rich:comboBox>
,并在页面声明这种风格:
<style type="text/css">
input.rich-combobox-button, input.rich-combobox-button-inactive, input.rich-combobox-button-disabled{
left:0px;
}
.rich-combobox-input, .rich-combobox-input-disabled, .rich-combobox-input-inactive{
font-weight:bold;
text-align:center;
}
</style>
谢谢。这很有帮助! – Benchik 2011-03-15 11:21:18