HTML

	<view class="content">
		<view class="item"></view>
	</view>

CSS

	.content {
		height: 600rpx;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		background-color: aqua;
	}

	.item {
		width: 100rpx;
		height: 100rpx;
		border: 3rpx blueviolet solid;
		background-color: aquamarine;
	}

tailwind css

	<view class="h-[600rpx] flex flex-row justify-center items-center bg-green-600">
		<view class="w-[100rpx] h-[100rpx] border-[3px] bg-red-600"></view>
	</view>

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部