<style>
/* 父盒子 */
.my_title{
display: flex;
align-items: center;
padding: 10rpx;
background-color: #fff;
}
/* 子元素 */
.search_icon{
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.user_icon{
flex: 2;
display: flex;
/* 水平对齐 */
justify-content: center;
/* 垂直对齐 */
align-items: center;
}
</style>
头部导航栏简单实现栅格布局
最新推荐文章于 2024-05-18 18:15:28 发布