对我来说似乎是一个非常直接的解决方案!把它推到你的编辑器里。更多帮助只是问
<html>
<head>
<title></title>
</head>
<style>
body {
margin:0px;
}
.wrap {
width:600px;
height:100%px;
background:grey;
margin:auto;
}
.left{
margin-left:0px;
width:290px;
height:200;
background-color:blue;
}
.right {
margin-left:310px;
width:290px;
height:200;
background-color:red;
}
</style>
<body>
<div class="wrap">
<div class="left"></div>
<div class="right"></div>
<div class="left"></div>
<div class="right"></div>
</div>
</body>
</html>
如果您想对其进行样式设置,只需学习如何制作 css 形状
.right {
width: 290px;
height: 300px;
margin-left:315px;
background: purple;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
.right:before {
content:"";
position: absolute;
width: 0;
height: 0;
border-top: 7px solid transparent;
border-right: 10px solid purple;
border-bottom: 7px solid transparent;
margin: 13px 0 0 -10px;
}