我用以下代码已经可以做到单框架网页同时滚动,但只要网页中出现框架就不行了,我要控制网页内某个框架的同时滚动(两个网页是一样的)请高手帮我解决这个问题。希望能准确详细点!!!! var Doc: IHTMLDocument2;e: IHTMLElement2; b: IHTMLElement; position: Extended; 
Doc := (webbrowser1.Document) as IHtmldocument2; 
b := doc.Get_body; 
b.QueryInterface(IHTMLElement2, e); 
position := e.get_scrollTop; 
Doc := WebBrowser2.Document as IHTMLDocument2; 
b := doc.Get_body; 
b.QueryInterface(IHTMLElement2, e); 
e.Set_scrollTop(Trunc(position));