Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何摆脱网格中的水平滚动条?使用列宽并不能解决问题。
这将隐藏水平滚动条:
$("#[yourGirdIDHere] .waf-dataGrid-body").css("overflow-x","hidden");
副作用是它还关闭了水平滚动。如果网格的列水平超出范围,它将无法滚动。
通过在 Web 组件的 css 文件中输入以下内容,我能够开始工作。
#{id}dataGrid1 .waf-dataGrid-body { overflow-x:hidden; }