2
다음과 같은 문제가 있습니다. 나는 그것을 할 수있는 빠른 방법이 있다고 생각하지만, 지금은 그것을 해결할 방법을 찾을 수 없습니다.본문 요소에 이미지를 페이지 상단에 첨부 (img의 스크롤 없음).
그래서 이미지가 있고 배경 이미지로 사용하고 싶습니다. <body>
요소의 페이지 상단에만입니다. 현재 아래로 스크롤하면 현재 페이지의 맨 아래로 이동합니다.
i를 folllowing 코드가 있습니다
body {
color: #d0d0d0;
font-family: Verdana, Tahoma, sans-serif;
font-size: 12pt;
font-weight: 400;
font-style: normal;
line-height: 1.5;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
margin: 0;
z-index: 0;
background:url(../img/main-bg-top.png) no-repeat top center;
background-attachment: fixed;
background-size: cover;
}
시도했지만 어떤 이유로 작동하지 않았습니다. 너의 방법을 시험해 볼게. – user3661795
당신은 형제 환영합니다;) pls 내 대답을 올바른 것으로 표시 고려하십시오. –
표시 및 환영합니다.) – user3661795