我正在使用Equelheight.js在我的网站上创建相同高度的块,但现在当页面加载时块的高度相同,但是我的块中的文字覆盖了块。写入从数据库中加载。问题是内容在jquery函数后被加载。我希望这是有道理的。Equelheight.js加载问题
jQuery的
$(document).ready(function() {
$(".article-block").equalHeight();
});
CSS
.article-block
{
background-color: #fff;
text-align: left;
padding: 21px 21px;
margin: 0 0 15px 0;
position: relative;
}
HTML
<div class="col-sm-4">
<div class="article-block shadow" style="position: relative">
<div class="pin [email protected]"></div>
<div>
<a href="@Url.Action("Article","Home")"><img class="article-image img-responsive" src="@Url.Content(item.ImagePath)" alt="Image" /></a>
</div>
<br />
<div class="article-heading">
<a class="article-heading" href="@Url.Action("Article","Home")">@item.Title</a>
</div>
<div class="article-date">
@item.DateCreated
</div>
<br />
<div class="article-intro">
@item.Introduction
</div>
<div class="read-more bottom">
<a class="read-more" href="@Url.Action("Article","Home")">Read more</a>
</div>
</div>