根据关于如何在允许滚动的同时隐藏滚动条的说法,标准方法是 -ms-overflow-style: none; /* Internet Explorer 10+ */} display: none; /* Safari and Chrome */但我在火狐71上试过了,样式scrollbar-width</
我有一个react应用程序,如果用户在windows机器上,我想删除滚动条,而不管使用的是什么浏览器。我试图实现一个函数来获取用户的操作系统(它工作得很好),然后使用样式组件有条件地呈现一些css,但它似乎不起作用(不知道这是否只是我的样式组件的问题?)。以下是我的应用程序组件中的一段代码: // getOS will pass 'win64' as a string to the OuterContainer if the user is browsing== 'mac&
下面是我添加到styles.css中的代码。但它也从mat-select组件中删除了滚动条,因此我的下拉列表不再容易访问。html { overflow-x: hidden;} widthRemove scrollbar space */
background: transparent; /* Optional: just make scrollbar i
我已经做了一个div,它包装了溢出的内容,但我希望它的scroll是隐藏的,但div仍然是可滚动的。{ overflow: scroll; <h4>Description</h4>
<p>After a series of deadly discoveries, Bruce Wayne has learned that the Court of Owls is real � and a