Html Bootsrap div内的垂直底部
如何将img放置在div的底部Html Bootsrap div内的垂直底部,html,css,twitter-bootstrap-3,Html,Css,Twitter Bootstrap 3,如何将img放置在div的底部 <body> <div class="container"> <div class="row" style="background-color: yellow; height: 600px;"> <div class="col-md-6"> <img src="img.png" alt="alt"> &
<body>
<div class="container">
<div class="row" style="background-color: yellow; height: 600px;">
<div class="col-md-6">
<img src="img.png" alt="alt">
</div>
<div class="col-md-6">
Lorem ipsum
</div>
</div>
</div>
</body>
乱数假文
谢谢解决方案是:
HTML:
它位于div的底部。是否希望它位于父级
div的底部
?我希望:
<div class="col-md-6 myclass">
<img src="img.png" class="bottom" width="300">
</div>
.bottom{
position:absolute;
bottom:0;
}
.myclass{
height: 100%;
position:relative;
}