题海让大学四年没有难题
白天模式登陆

题目详情

单选题 一个小程序页面中,wxml文件内容如下: <view class="box"> <view class="item">1</view> </view> 其中父盒子view.box设置为flex伸缩盒子,要使子盒子view.item在父盒子中完全居中,如图所示: 下面说法正确的是( )

A. 需要为view.item设置样式属性justify-content: center

B. 需要为view.box设置样式属性justify-content: center

C. 需要为view.item设置样式属性justify-content: center;align-items: center

D. 需要为view.box设置样式属性justify-content: center;align-items: center

学科:移动开发技术(2021级)

时间:2023-12-28 03:24:32

Copyright © 2022 津ICP备2021001502号