溢出y滚动总是显示即使它不会溢出 [英] overflow-y scroll always show even it not overflow

查看:101
本文介绍了溢出y滚动总是显示即使它不会溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做从内容中分离滚动JQuery Mobile Panel,我做了什么

I'm doing "Scroll JQuery Mobile Panel Separately From Content" ,what I have done

我应用此css来实现我的操作,但问题是

I apply this css to Achieve what I do but the problem is

overflow-y :scroll ==>总是显示其内容不会溢出。

overflow-y : scroll ==> Always show even its content not overflow.

你有什么想法,先谢谢。

Do you have any idea about it, Thank in advance.

.ui-panel-inner {
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 0px;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}


推荐答案

尝试使用 overflow:auto 。这将只显示滚动条,当内容溢出正常高度,而 overflow:scroll 将显示他们所有的时间。

Try using overflow: auto instead. That will only show scrollbars when the content overflows the normal height, whereas overflow: scroll will show them all the time.

这篇关于溢出y滚动总是显示即使它不会溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆