使用 rpx 自动缩小文字

wechat_user_type
Ge Hao 8 years ago
parent dc49306b67
commit a3ba697298
  1. 2
      pages/cart/cart.wxml
  2. 18
      pages/cart/cart.wxss

@ -31,7 +31,7 @@
</view> </view>
<view class="pull-right"> <view class="pull-right">
<view> <view>
<text>购买数量:</text> <text>数量:</text>
</view> </view>
<view class="quantity"> <view class="quantity">
<input value="{{item.quantity}}" bindinput="bindChangeQuantity" data-id="{{item.id}}"></input> <input value="{{item.quantity}}" bindinput="bindChangeQuantity" data-id="{{item.id}}"></input>

@ -26,13 +26,13 @@
padding: 15rpx; padding: 15rpx;
background-color: #fff; background-color: #fff;
border-top: 1px solid #e4e4e4; border-top: 1px solid #e4e4e4;
color: #787878; color: #333;
display:flex; display:flex;
align-items:center; align-items:center;
} }
.item text { .item text {
font-size: 14px; font-size: 28rpx;
} }
.item image { .item image {
@ -42,23 +42,23 @@
.item-right { .item-right {
display: block; display: block;
margin-left: 11px; margin-left: 20rpx;
flex: 1; flex: 1;
} }
.title { .title {
padding-bottom: 15px; padding-bottom: 30rpx;
} }
.title text { .title text {
font-size: 16px; font-size: 28rpx;
color: #787878; color: #333;
white-space: pre-wrap; white-space: pre-wrap;
line-height: 17px; line-height: 34rpx;
} }
.address-container text { .address-container text {
font-size: 17px; font-size: 34rpx;
color: #444; color: #444;
} }
@ -73,7 +73,7 @@
.pull-right { .pull-right {
margin-left: auto; margin-left: auto;
font-size: 15px; font-size: 28rpx;
display: flex; display: flex;
} }

Loading…
Cancel
Save