스크롤없이 지나간 웹 페이지에 그라디언트 배경을 구현했습니다. 그라디언트가 작동하고 바닥 글까지 완벽하게 보이며 높이가 10 픽셀 인 그라디언트 시작 부분의 색상이됩니다. 따라서 그라데이션이HTML 배경 그라디언트 반복
http://s30.postimg.org/6r64lcqkx/problem.png
그것이 "반복"되어 보인다. 나는 HTML/바디 높이를 수정 일명 시도했습니다
CSS :
html {
height:100%
}
body {
min-height:100%;
}
하지만 윈도우의 정확한 높이에 그라데이션을 반복하여 그 방금 만든 생김. 여기
순간에 몸 요소에 대한 코드입니다CSS : Wijnand의
body {
background: #650000; /* Old browsers */
background: -moz-linear-gradient(top, #650000 0%, #d40000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#650000), color-stop(100%,#d40000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #650000 0%,#d40000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #650000 0%,#d40000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #650000 0%,#d40000 100%); /* IE10+ */
background: linear-gradient(to bottom, #650000 0%,#d40000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#650000', endColorstr='#d40000',GradientType=0); /* IE6-9 */
font-family: 'helveticaneue_bold';
font-size:11px;
}
의례 : http://jsfiddle.net/ey7kfog3/
, 실제 코드에 도움이 쉽습니다 .. 코드와 JSFiddle를 추가하고 그냥 이미지가 아닙니다. :-) – rblarsen
나는 바이올린을 만들었습니다. http://jsfiddle.net/ey7kfog3/ –
환호성 Wijnand가 게시되었습니다. – BITmixit