我看到很多关于这个问题的帖子和问题,但没有一个对我有用,所以我问另一个。我有一个div
里面有一些文本,然后一个img
,我有几个divs
连续的,当我以不同的分辨率打开页面时,文本有时会扩展到两行而不是一行,所以图片不在同一级别. 正因为如此,我想让 OMG 贴在底部,div
所以当文本展开时,它们仍将处于同一水平。有什么建议么?
代码:
<div id="put_entry" class="main_banner">
<h1>
<center>
<a href="published.php">published</a>
</center>
</h1>
<center>i published those items<br /><center>
<center>
<img src="search_torent.png" id="index_banner" onclick="document.location='published.php';return false;"/>
</center>
</div>
CSS:
.main_banner{
margin-left: 15px;
direction: rtl;
border-radius: 10px;
background: #D1E3F3;
border: 1px solid #707070;
margin-top: 10px;
margin-bottom: 10px;
padding: 10px;
min-height: 273px;
width: 270px;
float: left;
}
.main_banner img{
cursor: pointer;
}