开发者

How can I place a div at the bottom of another div (so within the bigger div)?

How can I plac开发者_高级运维e a div at the bottom of another div (so within the bigger div) ?

How can I place a div at the bottom of another div (so within the bigger div)?

Thanks in advance.


With CSS:

Div1 {position:relative;}
Div2 {position:absolute;bottom:0}


http://jsfiddle.net/PvSra/

Simply set the outer div to position:relative and the inner to position:absolute and bottom:0.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜