後、私はこの結果に到達したい/前: は、これは私が気圧持っているものです:http://mijnwebsitebestellen.be/index.php重複ポリゴンの、Zインデックスと
だから私は、現在画像のスライスするSVG要素を使用しています。ブラウザでコードを調べることができます。私はz-indexの問題のために結果を正しく得ることができません。
あらゆるヒントや例があります。
後、私はこの結果に到達したい/前: は、これは私が気圧持っているものです:http://mijnwebsitebestellen.be/index.php重複ポリゴンの、Zインデックスと
だから私は、現在画像のスライスするSVG要素を使用しています。ブラウザでコードを調べることができます。私はz-indexの問題のために結果を正しく得ることができません。
あらゆるヒントや例があります。
純粋なCSSを使用しても同じ結果が得られます。
transform: skewX(-10deg);
とストライプを模倣するために、同じクラス.tile
のいくつかのdivを使用::after
を使用float: right;
のEtほらを聞かせて:
.container {
height: 300px;
width: 400px;
background: linear-gradient(rgba(219, 41, 117, 0.6), rgba(219, 41, 117, 0.6)), url(https://i.stack.imgur.com/e11Va.jpg);
background-size: cover;
color: white;
position: relative;
padding-right: 26px;
}
.container::after {
content: "";
position: absolute;
display: block;
right: 0;
bottom: 0;
height: 0;
width: 0;
border: none;
border-left: none;
border-right: 52px solid white;
border-top: 300px solid transparent;
border-bottom: none;
}
.tile {
width: 30px;
height: inherit;
background: rgba(0, 0, 0, 0.6);
border-left: 5px solid white;
transform: skewX(-10deg);
float: right;
}
<div class="container">
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
もちろん、あなたは、コンテナにコンテンツを追加することができます。コンテナの中の別のdivを使用して適切な幅を与えます。
必要に応じて詳しい情報を提供できますか? – Jacob
SVGにはZ-インデックスがありません。それは画家のモデルです。 –