배경 첨부 사용 배경 이미지를 고정으로 표시하는 속성입니다.
예시
다음 코드를 실행하여 background-attachment를 구현할 수 있습니다. 속성 -
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right top;
}
</style>
</head>
<body>
<h1>Background Image</h1>
</body>
</html>