Home > Back-end >  Consult the Delphi xe 10.1 webbrowser zoom the web?
Consult the Delphi xe 10.1 webbrowser zoom the web?

Time:11-17

After webbrowser page loading a lot! On the android browser web page display is normal, after loading onto the webbrowser magnified! Please advise the

CodePudding user response:

 WebBrowser1. Oleobject. Document. The body. The style.css. Zoom:=1/2; 

This value & gt; 1, & lt; A narrow,

CodePudding user response:

[dcc32 Error] Unit1. Pas (28) : E2003 Undeclared identifier: 'oleobject'

CodePudding user response:

reference 1st floor lyhoo163 response:
 WebBrowser1. Oleobject. Document. The body. The style.css. Zoom:=1/2; 

This value & gt; 1, & lt; 1,

This code, is I wrote in the browser code, executed through,
You don't pass, suggest change a browser control, such as EmbeddedWB, a try,
https://download.csdn.net/download/ann_0801/9510601
Have to download, code,

CodePudding user response:

Delphi xe 10.1 can be used?

CodePudding user response:

I am on android

CodePudding user response:

Consult the Delphi 10.1 FMX xe. Webbrowser zoom the web?

CodePudding user response:

refer to 6th floor breez123 response:
validate Delphi xe FMX. 10.1 how webbrowser zoom the web?



FMX

WebBrowser1. EvaluateJavaScript (' document. Body. Style. Zoom=1/2 ");

CodePudding user response:

Or not! Page does not change

CodePudding user response:

This should be on the page to solve, or use CSS media queries, according to different style, different browser dynamically setting or use js script to dynamically change the page style, is not the work of Delphi,

CodePudding user response:

In the condition of the android/ios, or under win32/64 state? TWebBrowser some aberrant behavior under the android,

CodePudding user response:

Under the android
  • Related