需要CSS浮动帮助 [英] CSS float help needed

查看:117
本文介绍了需要CSS浮动帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计请帮助我解决这个浮动问题。我尝试不同的方法,但任何东西都没有为我工作。

Guys Please help me to solve this floating problem.I tried different methods but anything didn't work for me.

在html文件中,小图片位于全局container.Footer中,位于全局容器的右下方。现在页脚来到顶部。

In the html file,Small images are in the global container.Footer placed right below the global container.But now the footer comes to the top.

这些是我的css -

These are my css-

CSS图片 -

style="margin-top: 25px; margin-right: 48px; float: right;"<br>
style="margin-top: 25px; margin-right: 48px; float: left;"

#footer_container{
    width: 900px;
    height: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    position: absolute;
    border: solid;    
}     



#global_body_container{
    width: 746px;
    position: absolute;
    padding-bottom: 10px;
    border-color: #c6c8cc;
    border-style:dashed;
    clear: both;


}

谢谢。

推荐答案

放置在浮动元素的容器 overflow:hidden

Place on the container of the floated elements overflow: hidden.

#global_body_container {
    overflow: hidden;
}

这篇关于需要CSS浮动帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆