【发布时间】:2012-02-16 10:10:41
【问题描述】:
我正在使用 JSF 2.0
我能够向 JSF 按钮添加背景图像,但无法向按钮添加图标。
我的要求是:- 带有背景图像和图标的 JSF 按钮
以下代码用于添加背景。
<!-- Discard button-->
<h:commandButton action="discard" style="background-image: url('..\\Images\\leftMenuActiveBg.png');width: 150px;height: 30px;color: white;border-color: white;font-size: 15px; " value="#{message.discard}">
<rich:componentControl target="popup" operation="show" />
</h:commandButton>
有人可以帮我在按钮上添加一个图标吗?
我正在更新一张图片,以便更好地解释我想要实现的目标,以及我到目前为止使用上面的代码所实现的目标。
【问题讨论】:
标签: css jsf-2 background-image