首页 > Web开发 > 详细

「HTML+CSS」五环居中,两栏布局,经典bug,BFC

时间:2019-10-07 14:49:31      阅读:84      评论:0      收藏:0      [点我收藏+]
*{
    margin: 0px;
    padding: 0px;
}
.frame{
    position: fixed;
    left:50%;
    top:50%;
    margin-left: -200px;
    margin-top: -85px;
   width: 400px;
   height: 170px;
   border: 1px solid black;
}
.cir1,
.cir2,
.cir3,
.cir4,
.cir5{
    position: absolute; 
    width: 100px;
    height: 100px;
    border: 10px solid black;
    border-radius: 50%;
}
.cir1{
    border-color: black;
    top: 0;
    left: 0;
}
.cir2{
    border-color: blue;
    left: 140px;
    top: 0;
}
.cir3{
    border-color: yellow;
    left: 280px;
    top: 0;
}
.cir4{
    border-color: red;
    left: 70px;
    top: 50;
}
.cir5{
    border-color: #f40;
    left: 210px;
    top: 50;
}
技术分享图片

 

 



div{
    position: fixed;
    width: 50px;
    height: 100px;
    background-color: red;
    left: 0px;
    bottom: 100px;

}
技术分享图片

 

 

 

 

技术分享图片

 

「HTML+CSS」五环居中,两栏布局,经典bug,BFC

原文:https://www.cnblogs.com/apelles/p/11630247.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!