赞
踩
button 的属性有很多,比如以下几个:
<button type="primary">提交</button>
<button type="default">提交</button>
<button type="warn">提交</button>
<button type="primary" size="mini">提交</button>
<button type="default" size="mini">提交</button>
<button type="warn" size="mini">提交</button>
<button type="primary" plain>提交</button>
<button type="default" plain>提交</button>
<button type="warn" plain>提交</button>
<button type="primary" disabled>提交</button>
<button loading>数据加载中...</button>
<form>
<input></input>
<input></input>
<input></input>
<button type="warn" form-type="reset">重置</button>
</form>
<button open-type="getUserInfo">获取权限</button>
<label>
<checkbox/>小程序
</label>
<label>
<checkbox></checkbox>小程序
</label>
<label>
<radio checked></radio>选中
<radio></radio>未选中
</label>
<input placeholder="请输入..."></input>
input{
border: 1px solid #ccc;
}
<input placeholder="请输入..." placeholder-style="color:pink"></input>
例如为 number 时:
<input placeholder="请输入..." type="number"></input>
<input placeholder="请输入..." type="number" cursor-spacing="100"></input>
<switch type="checkbox" checked></switch>选中
<switch type="switch" checked></switch>
<switch type="switch" color="pink"></switch>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。