嗨,大家好我试图recrate一个倾斜DIV如This 但我不能似乎得到的图片都显示:斜DIV没有显示
HTML:
<div class="headerLine">
</div>
CSS:
.headerLine{
position: relative;
width: 100%;
overflow: hidden;
height:100%;
background-image: url("../Images/back1.jpg");
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.headerLine:after{
content: "";
position: absolute;
z-index: 1;
pointer-events: none;
bottom: 0;
left: 0;
width: 100%;
/* background: url(../images/sliderL.png) center center no-repeat; */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
border-bottom: 150px solid white;
border-left: 3000px solid transparent;
}
打造其作为倾斜上面贴的例子一个div任何帮助,第一个格,将是巨大的