- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Phonegap build 构建应用程序。该应用程序只是另一个带有输入字段和“插入”按钮的列表应用程序。用户在键入他想要保存的短语并按下按钮以插入值后,该值显示在滚动框中。这是滚动框的代码(HTML、jQuery、CSS):
<script>
$( document ).ready(function() {
center();
});
function center(){
var wh = $(window).height()*0.56;
$('#demo').css({'height':wh+'px'});
}
</script>
<div class="container">
<div class="row">
<div id="demo" align="center" class="col-md-12"></div>
</div>
</div>
<style>
#demo {
overflow: scroll;
padding-left: 30px;
height: 200px;
width: 100%;
}
</style>
即使我第一次打开应用程序,滚动条也会自行显示。我在很多手机上试过,其中一半有这个问题,而在其他手机上没有出现滚动条。我在网上搜索但找不到类似的问题。你知道我怎样才能让滚动条变得不可见吗?提前致谢。
最佳答案
您是否尝试设置 overflow-x: hidden;
和 overflow-y: auto;
?如果不是这样尝试使用它
<style>
#demo {
overflow-y: auto;
overflow-x: hidden;
padding-left: 30px;
height: 200px;
width: 100%;
}
</style>
关于jquery - Scroll 在 Phonegap 应用程序中无缘无故地显示自己,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33927309/
我正在安装这个程序:THERMUS ,据我所知应该安装正常。我/我通过 ubuntu 控制台安装这个程序。但是当我运行 make all 时,我收到了这条消息: make: ***No rule to
我正在渲染一个简单的 sass 文件并收到以下警告: This selector doesn't have any properties and won't be rendered. ╷ 14
我不明白为什么文本不会与 div 的中间对齐,我认为这是导致页面底部出现空白的原因,我希望文本位于中间(高度)页脚的(两个 div 我都有两个强制文本的每个部分到页面的边缘) HTML:
我正在尝试为 android 创建基本的音乐播放器。对我来说一切似乎都很好,但是当我试图在我的手机上运行应用程序时。它说它停止了。我无法解决那个问题。感谢您的任何帮助。我试图在应用程序停止时查看“Lo
在我的 LoginProvider 中,我使用了一个函数来执行登录并将创建的 session 作为 promise 返回。 @Injectable() export class LoginProvid
我在 Google Cloud Platform 上运行 Dataflow-Jobs,我收到的一个新错误是“Workflow failed”,没有任何解释。我得到的日志如下: 2017-08-25
我已经阅读了无数关于这个错误的主题,但是没有一个和我有同样的问题。 我得到了 E/MediaPlayer: 错误 (-19, 0) E/MediaPlayer: 错误 (-19,0) 错误,然而,音乐
这个错误或我缺乏知识或其他东西真的开始困扰我。我正在开发一个 Grails 应用程序,并且在我的工作过程中随机出现 Grails 提示一些导入,说无法解析类名。它在一个保存前工作!我没有对项目的基础设
我为此失去了头发!我不断收到“发送后无法设置 header ”错误,我确定我没有像在其他问题中看到的那样调用 Next()。我的代码一直在工作,直到我尝试进行一些重构,我没有改变这个类的任何东西,所以
我是一名优秀的程序员,十分优秀!