だから....私はintroと呼ばれる1つのフォルダを持っています。このフォルダーには、index.html ファイルと style.css ファイルの両方があります。intro フォルダには、使用する画像を保存する「images」という別のフォルダがあります。そのフォルダー(画像)には、background.jpgという画像があります
コードは次のとおりです。
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css"/>
<title>test</title>
</head>
<body>
<div id="content">
<div class="info">
Want to know more about Dreams?
</div>
</div>
</body>
CSS
/*CSS Style Sheet*/
@font-face
body {
background-color: #080808;
background-image: url(images/background.jpg);
margin: auto;
}
#content {
width: 1000px;
background-color: #080808;
margin-left: auto;
margin-right: auto;
margin-top: 500px;
}
ただし、何らかの理由で背景画像と背景色が表示されません。背景色は白のままで、画像はどこにも見えません。ヘルプ?