내 섹션 중 하나에 background-image
속성에 문제가 있습니다.CSS 배경 이미지에 내 이미지가 표시되지 않습니다.
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css" type="text/css">
<link rel="stylesheet" href="css/custom.css" type="text/css">
<title>Elipsis</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
</head>
<body>
<header id="intro">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
</div>
</div>
</div>
</header>
<main>
<section id="about">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
</div>
</div>
</div>
</section>
<section id="services">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
</div>
</div>
</div>
</section>
</main>
<footer id="contact">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
</div>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
그리고 CSS : 다음은 HTML 코드
#intro {
background-image: url(.../.../img/intro.png);
background-image: url(intro.png);
background-image: url(".../.../img/intro.png");
background-image: url("intro.png");
}
Index.html을 루트 폴더에가, CSS 파일은 루트/CSS에/... 그리고 intro.png
모두 루트/IMG에/... 및 루트 폴더. 왜 보이지 않는거야? 스택에 몇 가지 주제를 읽고 Google에서 몇 가지 기사를 읽었지만 아무 것도 작동하지 않는 것 같습니다.
두 점 (../)을 사용하고 상대 경로를 사용하는 경우 경로가 CSS 파일과 관련이 있는지 확인하십시오. – Pete
'url ("../ img/intro.png");'시도한 적이 있습니까? –
이미지의 요소에 내용이나 높이가 정의되어 있습니까? – j08691