可以这么写,这个网页缩放了 同时滚动条也被绽放了,明显结果不正确

webBrowser1.Document.Body.Style = "zoom:200%";

 

正解

http://stackoverflow.com/questions/738232/zoom-in-on-a-web-page-using-webbrowser-net-control

 

这么写也可以

//Zoom IN
webBrowser1.Focus();SendKeys.Send("^{+}");// [CTRL]+[+]//Zoom OUT
webBrowser1.Focus();SendKeys.Send("^-");// [CTRL]+[-]//Zoom 100%
webBrowser1.Focus();SendKeys.Send("^0");// [CTRL]+[0]

相关文章:

  • 2021-09-19
  • 2021-08-15
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-05
  • 2021-10-04
  • 2021-10-19
相关资源
相似解决方案