내가 원하는 것은 : 것은 내가 원하는 무엇 (대칭을 너무, 첫 번째 자르기 만 유지) :
내가 무엇을 가지고 :
반복 배경 이미지 - 아니 작물 또는 만들 그것을 대칭
div.row.separator div.col {
height: 40px;
width: 100%;
padding: 0px;
background-image: url("./images/rhomb.png");
background-repeat: repeat-x;
}
<div class="container-fluid" id="main-content">
<div class="row">
<div class="col">
<h1>Title here 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
luctus eros at maximus tincidunt. Donec fringilla mattis massa,
vitae blandit massa egestas sed. Maecenas ipsum ligula, pretium
nec pellentesque convallis, consequat at magna.</p>
</div>
</div>
<div class="row separator">
<div class="col">
</div>
</div>
.......
몸이 회색이 컨테이너는 흰색입니다. 섹션 뒤에 구분 기호로 마름모꼴 줄이 필요합니다.
div의 배경 반복 x로 사용되는 작은 이미지를 사용하면 마지막 자르기를 방지하거나 첫 번째 자르기에서 같은 자르기를 할 수 있습니다 (반복되는 배경을 가운데 정렬 ...)?
UPDATE : 실험 주시기 바랍니다 : https://github.com/GhitaB/sample-design-bootstrap4-css이 (. 나를 위해 난 그냥 궁금하지 진짜 문제.)
있다 고정 너비를 설정하고이 너비는 이미지 폭의 다중 값입니다. – SaidbakR
예,이 경우에는 오려내는 이미지로 이미지를 변경하는 것이 더 좋습니다. :) – GhitaB