CSS让div高度或宽度超出规定的值时显示滚动条并否则自动隐藏滚动条

宽度:

 #flowxscroll { overflow-x: auto; display: -webkit-box; -webkit-overflow-scrolling: touch; white-space: nowrap; width: 410px; height: 42px; }

高度:

 #flowyscroll { overflow-y: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; width: 100%; height: 130px; }
学习交流群:364976091
原文地址:https://www.cnblogs.com/firstcsharp/p/15396856.html