如何在C#中减小\放大Webrowser控件的缩放级别 [英] How can i reduce\magnify the zoom level of a webrowser control in c#

查看:59
本文介绍了如何在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.


这篇关于如何在C#中减小\放大Webrowser控件的缩放级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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