小程序---基础控件的使用

视图容器

<scroll-view scroll-y="true" style="height: 300px">
    <view style="background: red; width: 100px; height: 100px" ></view>
    <view style="background: green; width: 100px; height: 100px"></view>
    <view style="background: blue; width: 100px; height: 100px"></view>
</scroll-view>
<scroll-view scroll-x="true" style=" white-space: nowrap; display: flex" >
    <view style="background: red; width: 200px; height: 100px; display: inline-block" ></view>
    <view style="background: green; width: 200px; height: 100px; display: inline-block"></view>
    <view style="background: blue; width: 200px; height: 100px; display: inline-block"></view>
</scroll-view>
<!-- https://blog.csdn.net/gujinapenggu5/article/details/80937498 -->

多行输入框---textarea

https://blog.csdn.net/jackjia2015/article/details/86520245

表单组件

<form bindsubmit="formSubmit" bindreset="formReset">
    <checkbox-group name="checkbox">
        <label><checkbox value="checkbox1"/>checkbox1</label>
        <label><checkbox value="checkbox2"/>checkbox2</label>
    </checkbox-group>

    <!-- input(输入框)的使用 -->
    <text>账号:</text>
    <input type='number' placeholder='请输入账号' name="phone" value='刘'/>
    <text>密码:</text>
    <input password='true' placeholder='请输入密码' name="pwd" value='123'/>

    <button type='primary' form-type="submit">登录</button>
    <button formType="reset">Reset</button>
</form>

媒体组件

<image class='img' style="width: 200px; height: 200px; background-color: #eeeeee;" src="{{src}}"></image>
<image class='img' style="width: 200px; height: 200px; background-color: #eeeeee;" src="../../image/004.jpg"></image>

小程序实现视图向js传递参数

https://blog.csdn.net/tianxintiandisheng/article/details/82156546

https://blog.csdn.net/u010545480/article/details/78909701 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值