慕粉18764815087
2016-07-24 19:56
在div3和div4是父子关系的情况下
实现这种效果,注意不是第二张图那种
谢谢..
我不想要这一种效果,想要第一张图那种,谢谢..
#box3{
width:200px;
height:200px;
position:relative;
}
#box4{
width:200px;
position:absolute;
bottom:0;
border-left:0;
border-bottom:0;
}
在我电脑上效果完美,你可以试一下。
#box3{
position:relative;
width:200px;
height:200px;
}
#box4{
position:absolute;
top:200px;
width:200px;
}
你可以在box4的style里面将它的上边框设置0像素 可以达到那个效果但是不太美观
#box3{
width: 200px;
height: 200px;
position:relative;
}
#box4{
position:absulote;
bottom:0px;
width:99%;
}
#box3{
width:200px;
height:200px;
position:relative;
}
#box4{
width:99%;
position:absolute;
bottom:0px;
}
初识HTML(5)+CSS(3)-升级版
1228578 学习 · 19080 问题
相似问题