文章詳情頁
javascript - 設置了背景卻出現RBRACE結果網頁沒反應
瀏覽:52日期:2023-03-13 15:11:03
問題描述
1.本人剛開始自學,想給標題增加一個背景,結果就報錯了
2.html代碼:
<p id='container'> <p id='header'> <p id='Love Live Sunshine'> <p> <h1>Love Live Sunshine</h1> <hr width='960&'> <p>這是一個標題!!!</p> </p> </p> </p>
3.CSS代碼:
#header{ margin: 0; width: 100%; background: url(網站圖片資源/LLSS.jpg); background: no-repeat; background: center;}
先謝過各位大神了(? ?_?)?
問題解答
回答1:這是 csslint 的警告。
#header{ margin: 0; width: 100%; background: url(網站圖片資源/LLSS.jpg); background: no-repeat; background: center;}
這兒錯了,background 重復設置了。
再給你一個建議,文件名不要使用中文。
標簽:
JavaScript
相關文章:
排行榜
