本文整理自网络,侵删。
uses mshtml;
var htmldoc: IHTMLDocument2;
MaxScrollWidth, MaxScrollHeight: Integer;
htmldoc := web.Document as IHTMLDocument2;
MaxScrollHeight := htmldoc.body.getAttribute('ScrollHeight', 0); //获得滚动条最大高度
MaxScrollWidth := htmldoc.body.getAttribute('ScrollWidth', 0);//获得滚动条最大宽度
Web.OleObject.Document.ParentWindow.ScrollBy(MaxScrollWidth, MaxScrollHeight ); //滚动到最右最下
//www.delphitop.com 搜集整理
相关阅读 >>
Delphi gethref 获取<a href="链接"></a>中href的数据
Delphi http 常见异常状态及Delphi idhttp 控件处理方式
Delphi 如何从一张图片中裁剪一部分距形图片另存为文件(使用canvas.copyrect)
Delphi datamodule1 fdconnection1数据库连接
更多相关阅读请进入《Delphi》频道 >>