Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在ZK中,如何在标签中显示html内容?_Java_Html_Ckeditor_Zk - Fatal编程技术网

Java 在ZK中,如何在标签中显示html内容?

Java 在ZK中,如何在标签中显示html内容?,java,html,ckeditor,zk,Java,Html,Ckeditor,Zk,有人能告诉我如何在ZK标签的帮助下显示HTML内容吗?如果我有这样的文字 <b> this is my test message </b> 这是我的测试消息 然后我必须在页面中用粗体显示此内容 这是我的测试消息看看下面的示例是否对您有帮助 <window id="win" title="Html Demo" border="normal"> <html><![CDATA[ <h4>Hi, ${win.t

有人能告诉我如何在ZK标签的帮助下显示HTML内容吗?如果我有这样的文字

<b> this is my test message </b>
这是我的测试消息
然后我必须在页面中用粗体显示此内容


这是我的测试消息

看看下面的示例是否对您有帮助

<window id="win" title="Html Demo" border="normal">
    <html><![CDATA[
        <h4>Hi, ${win.title}</h4>
        <p>It is the content of the html component.</p>
    ]]></html>
</window>

嗨,${win.title}
它是html组件的内容

]]>

在这里,他们在窗口内使用html标记来显示带有html标记的文本。

Hi Subodh,windows有子html,但lable没有子html。如何在html内容中定义标签。我认为您只能使用setStyle属性。考虑使用DIV(显示:内联)并追加HTML对象?