在this answer之后,我能够在Firefox中插入如下一些文本
css
body
{
-moz-binding: url(foo.xml#bar);
}foo.xml
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="bar">
<content>
Hello world
</content>
</binding>
</bindings>但是,我无法找到一种方法来插入HTML,而是使用此方法插入文本。
发布于 2013-01-19 04:45:47
看来我只需要声明XHTML namespace
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="bar">
<content>
<html:b>
Hello world
</html:b>
</content>
</binding>
</bindings>https://stackoverflow.com/questions/14411009
复制相似问题