Zoom in on a web page using WebBrowser .NET control

后端 未结 6 960
小鲜肉
小鲜肉 2020-11-30 04:23

In IE7 there\'s a \"zoom\" feature built-in (show in the status bar), allowing you to zoom in up to 400%. I\'m using the WebBrowser .NET control in a demo/simulation app, an

6条回答
  •  没有蜡笔的小新
    2020-11-30 05:01

    You can use CSS:

    private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            webBrowser1.Document.Body.Style = "zoom:50%";
        }
    

提交回复
热议问题