已经找到方法,还需调试可以用IHTMLDocument2的write完成MSDN2008上也有一个列子ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.chs/ieext/workshop/browser/mshtml/reference/ifaces/document2/write.htm