WPF ChromiumWebBrowser 隐藏滚动条
WPF ChromiumWebBrowser 隐藏滚动条
public MainWindow() { webBrowser.FrameLoadEnd += OnBrowserFrameLoadEnd; } private void OnBrowserFrameLoadEnd(object sender, FrameLoadEndEventArgs args) { if (args.Frame.IsMain) { args .Browser .MainFrame .ExecuteJavaScriptAsync( "document.body.style.overflow = 'hidden'"); } }