| | |
| | | </view> |
| | | <view class="main-right"> |
| | | <view class="list-options"> |
| | | <!-- <view class="list-number">1</view> --> |
| | | <view class="list-number">1</view> |
| | | <view class="abdb"> > </view> |
| | | </view> |
| | | </view> |
| | |
| | | {}, |
| | | {}, |
| | | {}, |
| | | {}, |
| | | {}, |
| | | {}, |
| | | {} |
| | | ] |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <!-- align-items: stretch --> |
| | | <!-- 牛逼!!! --> |
| | | <!-- 设置align-items为stretch,使子元素填充垂直方向的可用高度,实现高度相等的效果。 --> |
| | | <style scoped> |
| | | .main { |
| | | position: relative; |
| | | min-height: 70rpx; |
| | | background-color: #fdadfc; |
| | | display: flex; |
| | | align-items: center; |
| | | align-items: stretch; |
| | | margin: 8px 8px 8px 8px; |
| | | } |
| | | .main-left { |
| | |
| | | background-color: #cccccc; |
| | | flex: 1; |
| | | display: flex; |
| | | align-items: center; |
| | | /* flex-direction: column; */ |
| | | } |
| | | .main-list { |