我正在使用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>