Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 引导将img带到div的底部_Html_Twitter Bootstrap_Css_Twitter Bootstrap 3 - Fatal编程技术网

Html 引导将img带到div的底部

Html 引导将img带到div的底部,html,twitter-bootstrap,css,twitter-bootstrap-3,Html,Twitter Bootstrap,Css,Twitter Bootstrap 3,我使用bootstrap,在一个div中有一个img,img是顶部对齐的,我无法在div的底部粘贴 <div class="col-lg-6 col-md-6" style="height: 100%"> <img src="images/tv/Smartphone_Hand.png" class="img-responsive" style="vertical-align: bottom; position: absolute;"> </div&g

我使用bootstrap,在一个div中有一个img,img是顶部对齐的,我无法在div的底部粘贴

<div class="col-lg-6 col-md-6" style="height: 100%">
    <img src="images/tv/Smartphone_Hand.png" class="img-responsive" style="vertical-align: bottom; position: absolute;">    
</div>



使用他的

我看到你正试图使用
垂直对齐:底部
。发件人:

“垂直对齐CSS”属性指定对象的垂直对齐方式 内联或表格单元格框

因为您的显示很可能是初始(块),所以无法工作。您可以将其定位为绝对值,您已经这样做了,并将其放在底部:

img{
位置:绝对位置;
底部:0;
}

底部:0
添加到图像样式中,并确保div为
位置:相对
位置:绝对;底部:0
应该可以,假设你的潜水舱100%的高度正常工作。@Pete the img dissapear!!!你的div位置是相对的吗?如果是这样,请尝试向图像添加z索引
<div class="col-lg-6 col-md-6" style="height: 100%">
    <img src="images/tv/Smartphone_Hand.png" class="img-responsive" style="position:absolute;bottom:0">    
</div>