.wxml
<scroll-view class="container-wrapper" scroll-x="true">
<view class = "container1">
<view wx:for = "{{[1,2,3,4,5,6,7,8,9]}}" wx:for-item = "i" class = "container2">
<view wx:for = "{{[1,2,3,4,5,6,7,8,9]}}" wx:for-item = "j">
<view wx:if = "{{i <= j}}">
{{i}} * {{j}} = {{i * j}}
</view>
</view>
</view>
</view>
</scroll-view>
.wxss
.container1{
width: 900px;
}
.container2{
display: flex;
flex-direction: row;
justify-content: flex-end; /*靠右*/
}
.container2 view{
width:100px;
}
.container-wrapper{
white-space: nowrap;
}
倒右上三角