如图: 在button按钮上添加Content Size Fitter组件和Horizontal Layout Group(或者是Vertical Layout Group)组件,勾上ChildControl Size就搞定啦~~