小编Dee*_*Dee的帖子

如何将div粘贴到另一个div的底部?

好的,所以这是父div:

#left {
    width: 50%;
    height: 100%;
    background-color: #8FD1FE;
    float: left;
    opacity:0.75;
    filter:alpha(opacity=75);
    -webkit-transition: all .45s ease;  
    -moz-transition: all .45s ease; 
    transition: all .45s ease; }
Run Code Online (Sandbox Code Playgroud)

这就是div里面的div:

#reasons {
background-image:url('arrow1.png');
background-repeat: no-repeat;
height: 94px;
width: 400px;
margin: 0 auto 0 auto; }
Run Code Online (Sandbox Code Playgroud)

我已经尝试了一些不同的方法,但我似乎无法保持第二个div居中并坚持到第一个div的底部.

html css positioning

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

html ×1

positioning ×1