【发布时间】:2016-10-09 20:07:36
【问题描述】:
这里的图像变得非常小。而且我还想在中心对齐图像。请告诉一些解决方案,以便图像位于中心并以原始尺寸显示。我正在使用引导程序。
<div class="container" style="height: 100%;">
<div class="col-sm-4 col-md-4 col-lg-4"></div>
<div class="col-sm-4 col-lg-4" style="height: 100%;display: table;">
<a href="machine1.php" style="display : table-cell;vertical-align: middle;">
<img src="ft/text.png" class="img-responsive" style="min-width:660px;">
</a>
</div>
<div class="col-sm-4 col-md-4 col-lg-4 ">
</div>
.body-wrapper {
background: url('slide2_2.png');
background-size: cover;
height:100%;
}
html, body{
height:100%;
margin:0;
padding:0;
color:white;
}
a:hover{
text-decoration: none;
}
.img-responsive{
float: left;
}
图像位于垂直和水平中心,图像大小为 1366* 635
【问题讨论】:
-
你能把你想要达到的目标说得更清楚吗?图像的尺寸是多少或您希望它是什么尺寸?您想如何将其居中,在哪里?在 body 元素中水平放置?
标签: html css twitter-bootstrap-3 responsive-design