> (wb.Document as IHTMLDocument2).execCommand('InsertOrderedList',true,pInVar)
> (wb.Document as IHTMLDocument2).execCommand('InsertUnorderedList',true,pInVar);
> (wb.Document as IHTMLDocument2).execCommand('InsertOrderedList',true,pInVar)
> (wb.Document as IHTMLDocument2).execCommand('InsertUnorderedList',true,pInVar);
太谢谢了。
晚上回去试试。
不过,看到这些命令前面都有 Insert ,感觉怪怪的。
回去也试试
(wb.Document as IHTMLDocument2).execCommand('OrderedList',true,pInVar)
(wb.Document as IHTMLDocument2).execCommand('UnorderedList',true,pInVar);
这是我写的自用切换orderlist的过程:
procedure SwitchList(wb:TWebBrowser;od:Boolean);
var pInVar: OleVariant;
begin
if od then
(wb.Document as IHTMLDocument2).execCommand('InsertOrderedList',true,pInVar) else
(wb.Document as IHTMLDocument2).execCommand('InsertUnorderedList',true,pInVar);
end;