日期:2014-05-17  浏览次数:20640 次

XUL中如何插入一段HTML内容

代码如下:<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://EasyEffective/content/styles/global.css" type="text/css"?>
<window
id="Test"
title="Test"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="Onload()"
persist="screenX screenY width height sizemode">
<script src="chrome://Test/content/scripts/Test.js" type="application/x-javascript"/>
<vbox flex="1">
<hbox id="aContainer">
<html:a href="http://mozilla.org">Mozilla.org</html:a>
<html:table>
<html:tr><html:td>ok</html:td><html:td>ok</html:td></html:tr>
</html:table>

</hbox>
</vbox>
<statusbar pack="left">
<statusbarpanel flex="1" pack="left"><description>label;</description></statusbarpanel>
<statusbarpanel id="page-report-button" blocked="true"/>
</statusbar>
</window>