简体   繁体   English

整个页面上出现的特定div上的background-color

[英]background-color on specific div appearing on whole page

I'm working on this page: http://broadcasted.tv/ 我正在此页面上工作: http : //broadcasted.tv/

My headings have the following (I know it should be a class, I was just doing some testing) 我的标题如下(我知道这应该是一堂课,我只是在做一些测试)

 #title-container {
 background-color: #333;
 color: #fff;
 margin-top: 15px;
 }

It works fine everywhere except there http://broadcasted.tv/user/2/albertmarch/ 除了http://broadcasted.tv/user/2/albertmarch/以外,其他任何地方都可以正常运行

And I can't figure out why the heading is the whole page... Missing div ?? 而且我不知道为什么标题是整个页面...缺少div?

Any help appreciated 任何帮助表示赞赏

Thanks! 谢谢!

The background goes away if you add clear: 如果添加清除,则背景消失了:

#title-container {
    background-color: #333;
    color: #fff;
    clear: both;
    margin-top: 15px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM