我有一个本地文件夹,其中包含我的 index.html 文件。它还包含一个包含 mystyle.css 的 css 文件夹和一个包含我所有图像的 images 文件夹。我正在尝试创建背景图像,但它不会显示。谁能明白为什么?我的 css 工作正常,下面是我的 css 中的内容:
/*CUSTOM*/
body {
background-image:url('..\images\red_curtain.jpg');
}
这是我的 HTML:
<head>
<link rel="stylesheet" type="text/css" href="css\mystyle.css" />
<meta http-equiv="content-type" content="text/php; charset=utf-8" />