如何在Electron BrowserWindow中禁用水平滚动条? [英] How do i disable the horizontal scroll bar in Electron BrowserWindow?
本文介绍了如何在Electron BrowserWindow中禁用水平滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Electron的固定宽度和高度浏览器窗口中禁用水平滚动条?
How do i disable the horizontal scroll bar in a fixed width and height browser window in Electron?
谢谢。
推荐答案
我认为你只需在HTML文件中禁用水平滚动。
一种方法是使用css:
I think you just have to disable horizontal scrolling in your HTML file. One way to do so is by using css:
<style>
body {
overflow-x: hidden;
}
</style>
尝试在< head>中添加此项。
Try to add this in the <head>.
这篇关于如何在Electron BrowserWindow中禁用水平滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文