1. I just started self-study and wanted to add a background to the title, but I got an error
2.html code:
<p id="container">
<p id="header">
<p id="Love Live Sunshine">
<p>
<h1>Love Live Sunshine</h1>
<hr width="960&">
<p>這是一個(gè)標(biāo)題?。?!</p>
</p>
</p>
</p>
3.CSS code:
#header{
margin: 0;
width: 100%;
background: url(網(wǎng)站圖片資源/LLSS.jpg);
background: no-repeat;
background: center;
}
Thank you all in advance (? ?_?)?
This is a warning from csslint.
#header{
margin: 0;
width: 100%;
background: url(網(wǎng)站圖片資源/LLSS.jpg);
background: no-repeat;
background: center;
}
This is wrong, background
has been set repeatedly.
One more suggestion for you, don’t use Chinese in the file name.