<template> <view style="flex-grow: 1;"> <view> <text>max-height: 500rpx</text> <view class="common" style="max-height: 500rpx;"> <text>height: 1000rpx</text> </view> </view> </view> </template> <script> </script> <style> .common { width: 500rpx; height: 1000rpx; background-color: red; justify-content: center; align-items: center; } </style>