随笔分类 -  css

摘要:flex:0和flex:none flex:0等同于设置flex: 0 1 0%。 flex:0等同于设置flex: 0 1 0%。 flex:0时代码如下 <div class="container"> <div class="item">嘿嘿</div> <div class="item">哈哈 阅读全文
posted @ 2022-05-17 14:15 Kira的学习笔记 阅读(111) 评论(0) 推荐(0) 编辑
摘要:方法一:使用 margin 通过为元素设置左右的 margin 为 auto,实现让元素居中。 <div class="center">本内容会居中</div> .center { height: 500px; width: 500px; background-color: pink; margin 阅读全文
posted @ 2022-04-07 16:32 Kira的学习笔记 阅读(208) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2820688/202204/2820688-20220407162312962-1756490036.png) 阅读全文
posted @ 2022-04-07 16:23 Kira的学习笔记 阅读(28) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示