简体   繁体   中英

WebBrowser control c# Scrollbars

I have a webbrowser control in my windows form application that output a dynamic HTML page. Now this webbrowser have a width and a height . When the page exceeds width of webbrowser scrollbars appear. How can I keep scrollbar to bottom of webbrowser?

What I try :

In that dynamical HTML page I put jQuery 1.8.1 and another script call scrollTo. I create another div to stand at the bottom of page (I use CSS). But it's doesn't work because of webbrowser ...

I know there are many scripts for doing that but none that works in my situation. I have a div called "content" that hasn't a specified width and height and with .append() jQuery function it increases its height (its content).

How can I keep vertical scrollbar bottom of webbrowser in C# (I use VS 2010)?

只需给div一种样式overflow-y: scroll即可强制滚动条。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM