设置了背景却出现RBRACE结果网页没反应

1.本人刚开始自学,想给标题增加一个背景,结果就报错了

https://img3.mukewang.com/5c149e8d0001b26303620081.jpg

2.html代码:

<div id="container">
           <div id="header">
              <div id="Love Live Sunshine">
                  <div>
                                    <h1>Love Live Sunshine</h1>
                                    <hr width="960&">
                                    <p>这是一个标题!!!</p>
                  </div>
               </div> 
            </div>

3.CSS代码:

#header{    margin: 0;    width: 100%;    background: url(网站图片资源/LLSS.jpg);    background: no-repeat;    background: center;
}

先谢过各位大神了(ง •_•)ง


jeck猫
浏览 617回答 1
1回答

翻阅古今

这是 csslint 的警告。#header{&nbsp; &nbsp; margin: 0;&nbsp; &nbsp; width: 100%;&nbsp; &nbsp; background: url(网站图片资源/LLSS.jpg);&nbsp; &nbsp; background: no-repeat;&nbsp; &nbsp; background: center;}这儿错了,background&nbsp;重复设置了。再给你一个建议,文件名不要使用中文。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript