以下是我的代码:
[[[[webView mainFrame] frameView] documentView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)]; [[[[webView mainFrame] frameView] documentView] setNeedsDisplay:YES];
好的工作,webView确实扩展,但 mouse selection position has offset .
Image example
怎么解决???
为什么需要访问documentView?
[[[webView mainFrame] frameView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)];
也有效 .
1 回答
为什么需要访问documentView?
也有效 .