height: 300px;
overflow: scroll;
上面的指定了属性scroll,就会出现滚动的方框,不管超没超出高度。
stackoverflow: how-to-show-scroll-after-certain-height-but-height-should-not-be-fixed
.container{
height: 263px;
overflow-y: auto;
}
height: 300px;
overflow: scroll;
上面的指定了属性scroll,就会出现滚动的方框,不管超没超出高度。
stackoverflow: how-to-show-scroll-after-certain-height-but-height-should-not-be-fixed
.container{
height: 263px;
overflow-y: auto;
}