Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么背景色不';不行?_Html_Css - Fatal编程技术网

Html 为什么背景色不';不行?

Html 为什么背景色不';不行?,html,css,Html,Css,我试图为我的页脚设置背景色,但它并没有真正改变背景色。 这就是我到目前为止所做的 在我的代码中:我已经用body标记包装了页脚。这意味着页脚位于body标记内 .HTML: <footer> <div id="footer_box"> <p id="footer_text_left"> © 7 seas<br />

我试图为我的页脚设置背景色,但它并没有真正改变背景色。 这就是我到目前为止所做的

在我的代码中:我已经用body标记包装了页脚。这意味着页脚位于body标记内

.HTML:

<footer>
<div id="footer_box">

                <p id="footer_text_left">

                © 7 seas<br />                                          

                En del av 7seas Money Transfer KB<br />                 
                F-skatt registrerat  <br />                                         
                Org, Nr: <br />   

                SEB Företagskonto: <br />
                BG: 

                </p>

                <p id="footer_text_middle">
                Besökadress:<br /> 
                218 41 Bunkeflostrand<br /> 
                Malmö, Sweden <br />  


                Web:

                </p>

            <p id="footer_text_right">


                Tel: <br />
                 Mob: <br />
                 e-Mail:

                </p>

</div>

        </footer>

您需要在footer\u box元素上使用clearfix类:

<div id="footer_box" class="clearfix">

现在它应该可以工作了。

您需要在footer\u box元素上使用clearfix类:

<div id="footer_box" class="clearfix">

现在它应该可以工作了。

您需要在footer\u box元素上使用clearfix类:

<div id="footer_box" class="clearfix">

现在它应该可以工作了。

您需要在footer\u box元素上使用clearfix类:

<div id="footer_box" class="clearfix">

现在它应该可以工作了。

在css中添加
溢出:auto

#footer_box{
    overflow: auto;
    border-top:2px solid #009933;
    background-color:green;
}

这里有一个。

在css中添加
溢出:auto

#footer_box{
    overflow: auto;
    border-top:2px solid #009933;
    background-color:green;
}

这里有一个。

在css中添加
溢出:auto

#footer_box{
    overflow: auto;
    border-top:2px solid #009933;
    background-color:green;
}

这里有一个。

在css中添加
溢出:auto

#footer_box{
    overflow: auto;
    border-top:2px solid #009933;
    background-color:green;
}

这里有一个。

只需将绿色背景添加到
\footer\u text\u left
\footer\u text\u middle
\footer\u text\u right
标记中即可

#页脚框#页脚文本#左#页脚文本#中#页脚文本#右#{
边框顶部:2个实心#009933;
背景颜色:绿色;
}
#页脚文字居中,页脚文字居右{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:28%;
利润率:0.1%;
垫底:15px;
}
#页脚\文本\左侧{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:31%;
左边距:120像素;
垫底:15px;
}

©7海
En del av 7seas汇款KB
F-skatt寄存器地址
组织,编号:
SEB Företagskonto:
背景:

贝斯考德:
218 41束氟绞线
瑞典马尔默
网状物:

电话:
暴民:
电邮:


只需将绿色背景添加到
\footer\u text\u left
\footer\u text\u middle
\footer\u text\u right
标记中即可

#页脚框#页脚文本#左#页脚文本#中#页脚文本#右#{
边框顶部:2个实心#009933;
背景颜色:绿色;
}
#页脚文字居中,页脚文字居右{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:28%;
利润率:0.1%;
垫底:15px;
}
#页脚\文本\左侧{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:31%;
左边距:120像素;
垫底:15px;
}

©7海
En del av 7seas汇款KB
F-skatt寄存器地址
组织,编号:
SEB Företagskonto:
背景:

贝斯考德:
218 41束氟绞线
瑞典马尔默
网状物:

电话:
暴民:
电邮:


只需将绿色背景添加到
\footer\u text\u left
\footer\u text\u middle
\footer\u text\u right
标记中即可

#页脚框#页脚文本#左#页脚文本#中#页脚文本#右#{
边框顶部:2个实心#009933;
背景颜色:绿色;
}
#页脚文字居中,页脚文字居右{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:28%;
利润率:0.1%;
垫底:15px;
}
#页脚\文本\左侧{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:31%;
左边距:120像素;
垫底:15px;
}

©7海
En del av 7seas汇款KB
F-skatt寄存器地址
组织,编号:
SEB Företagskonto:
背景:

贝斯考德:
218 41束氟绞线
瑞典马尔默
网状物:

电话:
暴民:
电邮:


只需将绿色背景添加到
\footer\u text\u left
\footer\u text\u middle
\footer\u text\u right
标记中即可

#页脚框#页脚文本#左#页脚文本#中#页脚文本#右#{
边框顶部:2个实心#009933;
背景颜色:绿色;
}
#页脚文字居中,页脚文字居右{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:28%;
利润率:0.1%;
垫底:15px;
}
#页脚\文本\左侧{
字体大小:12px;
字体家族:幼发症;
浮动:左;
宽度:31%;
左边距:120像素;
垫底:15px;
}

©7海