在为Firefox和Microsoft Edge(ME)制作剪辑标题时,我使用了clip-path.它只是通过将clipPath元素放在SVG元素和clip-pathHTML元素内的样式中而在Firefox中工作.当我在ME上打开相同的代码时,它没有显示任何内容.
html,body,header {
margin:0px;
height:100%;
font-family: Arial Unicode MS;
}
button:hover {
transition:background-color 0.5s linear;
}
a:hover,li:hover {
opacity: 0.5;
transition:opacity 0.4s linear
}
#header {
width: auto;
height: 100%;
}
/************************** BANNER-SLIDER-HEADER BEGIN ************************/
.carousel,
.item,
.active {
height: 100%;
}
.carousel-inner {
height: 100%;
-webkit-clip-path: polygon(0 0, 0px 100%, 100% 85%, 100% 0);
clip-path: polygon(0 0, 0px 100%, 100% 85%, 100% 0);
-webkit-clip-path: url("#clipping");
clip-path: url("#clipping");
}
/* Background images are …Run Code Online (Sandbox Code Playgroud)