view 添加点击效果 需要主动开启 <view hover hover-class="view-hover"> page wxss样式层级 下面是一个page 示例: <view class="<em>page-layout</em> class="flex-item red">2</view> <view class="flex-item blue">3</view> </view> </view>/* wxss */ .page-layout { color: #000; } /* 下面这种写法 .red 是不生效的 */ .red { color: #f00; } /* 必须这么写 */ .page-layout .red
item { /* 单个项目覆盖默认对齐 */ justify-self: start; align-self: end; } 2.3 实用布局示例 2.3.1 经典页面布局(语义化) .page-layout repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 20px; } @media (max-width: 768px) { .page-layout
graphitefriction[@graphitefriction]>; Ryan Waldron <https://github.com/erebor[@erebor]> // settings: :page-layout