嗨,大家好我試圖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任何幫助,第一個格,將是巨大的