找不到错误文件[关闭]

问题描述 投票:0回答:0

我无法在 CSS 中加载我想要的图像.. 我写代码:背景图像:url(但这里是照片的链接) 并给我错误:ERR_FILE_NOT_FOUND

我尝试了一切,在 youtube 上观看视频,但什么也没给我…… 我改变了来源和照片以及照片的种类(png,jpg,jfif) 并写:url(css/photo.png) 而不是 url(/css/photo.png)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="description" content="here you can find the summary of all Books" />
    <link rel="stylesheet" href="css/summary.css">
    <title>Books summary</title>
</head>
<body>
    <div class="all">
        <div class="h1">
            <h1>Books summary</h1>
        </div>
        <div>
            <p class="p">these is wibsite to Summing up books, please have fun in my wibsite</p>
        </div>
        <div class="ul">
            <label for="books kind">choose the kind of the book:-</label>
            <ol id="books kind">
                <li><a href="novels.html">1-novels</a></li>
                <li><a href="psychology.html">2-psychology</a></li>
                <li><a href="history.html">3-history</a></li>
                <li><a href="horror.html">4-horror</a></li>
                <li><a href="allbooks.html">all books</a></li>
            </ol>
        </div>
    </div>
</body>
</html>
.all{
    background-color: #956f3e;
    border: 5px solid black;
    background-image: url(/png/coffee.png);
    display: block;
    text-align:left;
}
html css file url background-image
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.