如何在C#中顺利滚动WebBrowser? [英] How can I smoothly scroll WebBrowser in C#?

查看:187
本文介绍了如何在C#中顺利滚动WebBrowser?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用WebBrowser控件来显示.svg矢量图像。问题是我想顺畅地将图像从底部滚动到顶部。

我已经设法使WebBrowser直接进入底部,使用:

Hello,
I'm using WebBrowser control to show a .svg vector image. The problem is that I would like to smoothly scroll the image from the bottom to the top.
I've already managed to make WebBrowser go directly to the bottom, using:

this.webBrowser1.Navigate("javascript:scroll(0,1000);");



但我无法想象顺利向上滚动的方式......

在此先感谢


But I can't imagine a way for smoothly scrolling up...
Thanks in advance

推荐答案

绝不是答案或接近它,但试试这个:



它需要工作,但使用ASP.Net中的ScriptManager以及它的一些部分来获得你想要的。 Tou可能需要JavaScript或ASP.Net时间。



https://css-tricks.com/snippets/jquery/smooth-scrolling/ [ ^ ]
By no means the answer or close to it, but try this:

It will take work but use the ScriptManager in ASP.Net along with bits of this to get what you want. Tou may need a JavaScript or ASP.Net Time though.

https://css-tricks.com/snippets/jquery/smooth-scrolling/[^]


这篇关于如何在C#中顺利滚动WebBrowser?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆