需求:1、y轴滚动条隐藏,并可滚动显示内容;2、x轴超出宽度隐藏。
.your_class_name{
max-width: 500px;
max-height: 190px;
overflow-x: hidden;
overflow-y: scroll;
}
.your_class_name::-webkit-scrollbar {
display:none
}
.your_class_name{
max-width: 500px;
max-height: 190px;
overflow-x: hidden;
overflow-y: scroll;
}
.your_class_name::-webkit-scrollbar {
display:none
}
本文标题:隐藏滚动条,并可显示内容
本文链接:https://www.haomeiwen.com/subject/btzydhtx.html
网友评论