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