ICEFACES commandButton 标题属性可以具有粗体文本之类的样式吗?
使用 ICEFACES,我需要“commandButton”的标题属性将其某些字符加粗。
我的意思是,有:
<ice:commandButton style="width:8%" rendered="true" title="Michael air Jordan" actionListener="#{someBean.write}" />
我希望标题属性中的单词“air”是粗体。迈克尔·乔丹不大胆,气场大胆 --> Michael air Jordan
我尝试将 air
放入属性标题中,但它不起作用。
这可能吗?
提前致谢!!
Using ICEFACES, I need that a title attribute of a "commandButton" to have some of its characters bold.
I mean, having:
<ice:commandButton style="width:8%" rendered="true" title="Michael air Jordan" actionListener="#{someBean.write}" />
I would like that for example the word "air" in the title attribute would be bold. Michael Jordan not bold and air bold --> Michael air Jordan
I tried putting <b>air</b>
inside the attribute title, but it does not work.
Is that possible?
Thanks in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已编辑:
我认为这不能用 HTML 按钮来完成。您无法在
value
或title
属性中渲染 HTML,因此无法在 IceFaces 按钮中完成,这基本上会转换为但是这个问题可以帮助您实现您想要的: Is it possible to format HTML 工具提示(标题属性)?
EDITED:
I don't think it can be done with an HTML button. You cannot render HTML in the
value
ortitle
attributes, so it cannot be done in an IceFaces button, which basically translates to an<input type="submit"...>
tag.But this question can help you achieve what you want: Is it possible to format an HTML tooltip (title attribute)?