HTML-und CSS-Background-image wird nicht angezeigt

Ich schon überprüft, meine URL und den Namen der Dateien, aber ich kann nicht scheinen, um das Bild zu zeigen. Warum ist es so? Hier mein code (beachten Sie die <p> ist innerhalb der body-tags habe ich nicht fügen Sie den vollständigen code habe ich nur Hinzugefügt, der Kopf und das Besondere problem).

<html>
  <head>
     <title>Head First Lounge.</title>
      <link type="text/css" 
            rel="stylesheet" 
            href="stylesheet/style.css" 
            media="screen"/>
  </head>


<p class = "guarantee">
     Our guarantee: at the lounge, we're committed to providing you, 
     our guest, with an exceptional experience every time you visit.
     Whether you're just stopping by to check in on email over an 
     elixir, or are here for an out-of-the-ordinary dinner, you'll 
     find our knowledgeable service staff pay attention to every detail. 
     If you're not fully satisfied, have a Blueberry Bliss Elixir on us.
</p>        

Und hier ist die CSS-Regel für das Teil

.guarantee{         
        background-image: url(images/background.gif);
        font-family: "Geogia", "Times New Roman", Times, serif;
        border-color: black;
        border-width: 1px;
        border-style: solid;
        background-color: #a7cece;
            padding: 25px;
            margin: 30px;
            line-height: 1.9em;
            font-style: italic;
            color: #444;
}
  • Was ist die url von dem Bild? /images/background.gif oder /stylesheet/images/background.gif
  • es befindet sich image/background.gif. das Haupt-HTML-Seite.
  • ändern background-image: url(../images/background.gif)
InformationsquelleAutor user962206 | 2012-01-12
Schreibe einen Kommentar