[英]Positioning div at bottom inline
I need to position some images, inline on the bottom of a container. 我需要在容器底部内嵌一些图像。 I tried to do as this question asks, but I can't understand why with me doesn't work and escapes from the container.
我尝试按照此问题的要求进行操作,但是我不明白为什么我不工作并从容器中逃脱。 Could you help me?
你可以帮帮我吗? This is my code:
这是我的代码:
<div id="banner">
<div id="uscite">
<div id="jp"><img src="../img/uscite/scan.png" height="90" width="60" alt="" /><br />text</div>
<div id="it"><img src="../img/uscite/scan.png" height="90" width="60" alt="" /><br />text</div>
</div>
<div id="nav_main">
<div style="margin: 0 auto;"><img src="../inc/home.png" /></div>
<div style="margin: 0 auto;"><img src="../inc/staff.png" /></div>
<div style="margin: 0 auto;"><img src="../inc/forum.png" /></div>
<div style="margin: 0 auto;"><img src="../inc/disclaimer.png" /></div>
<div style="margin: 0 auto;"><img src="../inc/secret.png" /></div>
</div>
</div>
CSS : CSS :
div#banner{
padding:10px;
border:1px solid #444444;
background: url('header2.png') no-repeat center center;
height:400px;
}
div#nav_main{
position: absolute;
left: 0;
width: 1180px;
bottom: 0;
}
div#uscite{
padding:30px 20px;
float:right;
border:0px;
height:35%;
width:20%;
}
div#jp{
text-align: center;
width:50%;
height:100%;
float:left;
border:0px;
}
div#it{
text-align: center;
width:50%;
height:100%;
float:right;
border:0px;
}
http://jsfiddle.net/nu7eoj0q/1/ http://jsfiddle.net/nu7eoj0q/1/
Edit: I'd also like add another div (called "social") under "uscite"'s one. 编辑:我也想在“ uscite”的下添加另一个div(称为“ social”)。 but it doesn't appear.
但它没有出现。 What am I wrong?
我怎么了 http://jsfiddle.net/faeba3v1/
http://jsfiddle.net/faeba3v1/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.