我们怎样才能使句子中的某些单词出现在BOLD中
例如 - 我试图将一个句子中的一个单词用BOLD表示
句子是"请选择金额"
金额应该是BOLD,现在,当我使用时
message = "please select the <b>amount </b>"
Run Code Online (Sandbox Code Playgroud)
这不起作用.它只是表明
please select the <b>amount </b>.
Run Code Online (Sandbox Code Playgroud)
我怎样才能让它发挥作用?
sta*_*ker 23
将escape属性设置为false允许您插入html标记
<h:outputText escape="false" value="please select the <b>amount</b>"/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17269 次 |
| 最近记录: |