如何在C#中减小\放大Webrowser控件的缩放级别

问题描述:

我想开发一个像歌剧一样具有快速启动页面的Webrowser,所以我使用了6个Web浏览器控件,并且我想根据它包含的面板的大小来调整网页.

I want to develop a webrowser have a quick launch page like opera,so i used 6 web browser control, and i want to adjust the webpage according to it size of the panel which it contains

queryAddress.Append("http://www.google.com");
           webBrowser1.Navigate(queryAddress.ToString());

您知道IE不会放大字体较硬的页面吗? CSS编码?例如,

Are you aware the IE won''t zoom a page where the fonts are hard-coded in css? For instance,

font-size:12px;



不会受到影响,但是



won''t be affected, but

font-size:100em;



会的.

您根本无法依靠没有编写代码的页面就能实现最佳实践.



will be.

You simply can''t rely on a page that YOU didn''t code to have been implemented with best practices in mind.