07 小程序的宿主环境:1、通信模型 2、运行机制 3、组件 4、API
3、组件.scroll-view组件的基本使用
<!--pages/list/list.wxml-->
<scroll-view class="container1" scroll-y>
<view>A</view>
<view>B</view>
<view>C</view>
</scroll-view>
/* pages/list/list.wxss */
.container1 view{
width: 100px;
height: 100px;
text-align: center;
line-height: 100px;
}
.container1 view:nth-child(1){
background-color: lightgreen;
}
.container1 view:nth-child(2){
background-color: lightskyblue;
}
.container1 view:nth-child(3){
background-color:lightpink;
}
.container1{
border: 1px solid red;
width: 100px;
height: 120px;
}