gpt4 book ai didi

jquery - 为什么 View 不向下滚动?

转载 作者:太空宇宙 更新时间:2023-11-03 17:55:39 24 4
gpt4 key购买 nike

各位!我正在使用类固醇框架和 css/html/js 为 ios 编写移动应用程序。不幸的是,我不明白,为什么我不能向下 ScrollView 。请帮忙。

屏幕的html代码

<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width">
<title>Teachers</title>

<link rel="stylesheet" href="/vendor/ionic/css/ionic.css" />
<link rel="stylesheet" href="vendor/stylesheets/application.css" />

<script src="/javascripts/onerror.js"></script>
<script src="/javascripts/console.log.js"></script>

<!-- cordova.js is served from localhost to ensure the correct version -->
<script src="http://localhost/cordova.js"></script>
<script src="/components/steroids-js/steroids.js"></script>

<script src="/javascripts/application.js"></script>
</head>
<body>


<div class="grid">

<img src="teachers/bobr.jpg">
<h3>Боброва Даша</h3>
<p>Математический анализ</p>
</div>
<div class="grid">
<img src="teachers/korolev.jpg">
<h3>Королев Даня</h3>
<p>Программирование 1</p>
</div>
<div class="grid">
<img src="teachers/mayb.jpg">
<h3 >Майборода Кирилл</h3>
<p>Программирование 2</p>
</div>

<div class="grid">
<img src="teachers/mosh.jpg">
<h3 >Монгольский фанк</h3>
<p>Ла-ла</p>
</div>
</body>
</html>

和部分css

body {
/* Background color set as workaround for Legacy Android issue:
https://github.com/AppGyver/steroids/issues/381 */
background-color:#fff;

}



.grid{
width: 100%;
height: 33%;
clear: both;
display: inline-block;
}


.grid img{

padding-top: 2%;
padding-bottom: 2%;
margin-left: 3%;
width: 33%;
height:96%;
float: left;


}
.grid h3{
font-size: 300%;
text-align: center;
padding-top: 4%;


}
.grid p{

font-size: 200%;
text-align: center;
}

最佳答案

应该声明 ,因为主体的这种样式在默认 css 文件中声明,并且是在 android/iphome 上模拟应用程序所必需的。

关于jquery - 为什么 View 不向下滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26391801/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com