abc

博客园 首页 新随笔 联系 订阅 管理

获取滚动条的位置:
 HtmlDocument document = WB1.Document;

 int top = document.GetElementsByTagName("HTML")[0].ScrollTop;//滚动条垂直位置

指定滚动条滚动到指定位置

WB1.Document.Window.ScrollTo(0, 100);//滚动到100的位置

WB1.Document.Window.ScrollTo(0, WB1.Document.Body.ScrollRectangle.Height);//滚动到底部

posted on 2014-05-19 16:57  &大王叫我来巡山&  阅读(314)  评论(0)    收藏  举报