数码资讯
小程序语法
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
小程序的屏幕宽固定为 750rpx (即750个物理像素)
让小程序内容在同一行
<view class="line">
<view wx:for="{{item}}" >
<button class="abc" style="width: 125rpx;" size="mini" type="primary"
bindtap="clickButton" data-item="{{item}}">{{item}}</button>
</view>
</view>
/* 修改高度,边距。按钮宽度只能在 标签内修改 */
.abc {
margin-top:0rpx;
margin-bottom:1rpx;
margin-right:1rpx;
margin-left:2rpx;
height: 125rpx;
}
.line{
display:flex;
}
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。