会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的世界蹦擦擦
CnBlogs
Home
New Post
Contact
Admin
Subscription
2021年6月10日
css实现盒子水平垂直居中--3种常用方法
需要居中显示的子盒子 <body> <div class="box">我要居中显示</div> </body> 一、子盒子拥有固定的长宽 1、绝对定位 + margin负间距 .box { background: red; width: 200px; height: 200px; position:
Read More
posted @ 2021-06-10 14:49 我的世界蹦擦擦
Views(419)
Comments(0)
Diggs(0)
公告