gpt4 book ai didi

jsf - h :commandButton with twitter bootstrap or other icon

转载 作者:行者123 更新时间:2023-12-04 17:36:21 24 4
gpt4 key购买 nike

我正在使用 twitter bootstrap css 来设置样式。要在其中制作图标按钮,标准方法是使用“i”标签。<button type="submit"><i class="icon-search"></i></button> .
但我不能在里面输入
<h:commandButton id="myid"><i class="icon-search"></i></h:commandButton>如何在呈现的 <h:commandButton> 中添加 HTML ?

最佳答案

您可以添加<i class="icon-search"></i>里面 h:commandLink
命令链接可以设置为按钮

<h:commandLink id="btnsearch"
action="search.xhtml"
styleClass="btn btn-default">
<i class="icon-search"></i> Search
</h:commandLink>

关于jsf - h :commandButton with twitter bootstrap or other icon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17895869/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com