나는 지금 웹 사이트를 구축 중이며 에 생성 된 모든 섹션과 그라데이션 배경을 포함하도록 배경 이미지이있는 섹션을 설정하려고합니다. 내가 그들을 함께 퍼팅 시도 하지만 정말 작동하지 않았다, 이것은 내가 뭘하려 : https://jsfiddle.net/gmtujnmh/표지 배경 이미지 + 그라디언트 배경
#fullcover {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-position: center;
max-height: 60%;
display: inline;
background-image: url(http://www.materials-world.com/bricks/belden/whites/images/AlaskaWhiteVelourWT.jpg);
/* fallback */
background: rgba(62, 21, 49, 1);
background: -moz-linear-gradient(-45deg, rgba(62, 21, 49, 1) 0%, rgba(162, 23, 128, 1) 100%);
background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(62, 21, 49, 1)), color-stop(100%, rgba(162, 23, 128, 1)));
background: -webkit-linear-gradient(-45deg, rgba(62, 21, 49, 1) 0%, rgba(162, 23, 128, 1) 100%);
background: -o-linear-gradient(-45deg, rgba(62, 21, 49, 1) 0%, rgba(162, 23, 128, 1) 100%);
background: -ms-linear-gradient(-45deg, rgba(62, 21, 49, 1) 0%, rgba(162, 23, 128, 1) 100%);
background: linear-gradient(135deg, rgba(62, 21, 49, 1) 0%, rgba(162, 23, 128, 1) 100%);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#3e1531', endColorstr='#a21780', GradientType=1);
}
<div id="fullcover"></div>
그것이 cssmatic에서 가져온 그라데이션 코드가, 누군가가 나를 도울 수 있습니까?
은 [이] (https://jsfiddle.net/gmtujnmh/1/) 당신이 뭘하려는 건지? – Itay
그래, 그라디언트가 작동하지 않습니다 – ssabin
흠, 그래디언트와 풀 이미지가 필요한 이유는 무엇입니까? 너 oppacity 함께 놀고 싶어? –