3
http://www.rleonardi.com/interactive-resume/과 비슷한 가운데 고정 된 문자로 가로로 스크롤하는 웹 사이트를 만들려고합니다.사이드 스크롤링 웹 사이트 만들기
이미지 크기를 조정하려고 CSS를 변경하려고하면 웹 사이트에 영향을 미치지 않으며 위치를 사용해야하는지 여부는 알지 못합니다. 센터의 문자를 수정하려면 고정되어 있어야합니다.
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<title>Your title</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<background><img src="Photos/Backgroundclear%20.png" alt= "Background"/> </background>
<character><img src="Photos/Character.png" alt= "Background image"/> </character>
<div><floor><img src="Photos/floor.png" alt= "Background image"/> </floor> </div>
</body>
과 CSS :
body{
background-color: $primarycolour;
max-width: 8000px;
max-height: auto;
}
background{
max-height: auto;
max-width: 100%;
}
character{
max-height: 20px;
margin: auto;
}
더 나은 코드를 피들로 감쌀 수 있습니다. 귀하의 CSS는 전혀 크기를 조정하지 않습니다. –