我是 CSS 新手,想知道div
在这种情况下如何在绿色和蓝色中间放置 s 之间的边框?
html:
<div class="wrap">
<div class="left">
</div>
<div class="right">
</div>
CSS:
.wrap {
background: gray;
overflow: hidden;
width: 1024px;
min-height: 400px;
position: relative;
margin: auto;
}
.right {
float: right;
width: 70%;
min-height: 550px;
background: blue;
position: relative;
border-left: 1px solid;
}
.left {
float: left;
width: 30%;
min-height: 550px;
background: green;
margin: auto;
border-right: 1px solid;
}