-2
我有基於php的博客。它一直很好,但我',重新佈局頁面和某些div現在沒有顯示出來。我無法弄清楚爲什麼?這是標誌。它的div與他們的類hr。某些分區不顯示
<div class="hr grid_12 clearfix"> </div>
<!-- Caption Line -->
<h2 class="grid_12 caption clearfix">Kerry's<span> Blog</span><br /> Keeping you up-to-date on our latest news.</h2>
<div class="hr"> </div>
<!-- Column 1 /Content -->
<div class="grid_8">
<!-- Blog Post -->
<cms:pages masterpage='blog.php'
start_on=k_archive_date
stop_before=k_next_archive_date
paginate='1' limit='3' >
<div class="post">
<!-- Post Title -->
<h3 class="title"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h3>
<!-- Post Data -->
<cms:if k_page_foldertitle >
<cms:set my_category=k_page_foldertitle />
<cms:else />
<cms:set my_category='Updates' />
</cms:if >
<p class="sub"><a href="#"><cms:show my_category /></a> • <cms:date k_page_date format='jS M, y'/> • <a href="#"><cms:show k_comments_count /></a></p>
<div class="hr dotted clearfix"> </div>
<!-- Post Image -->
<cms:if blog_image >
<img class="thumb img_left" alt="" src="<cms:show blog_image />" /></cms:if>
<!-- Post Video -->
<cms:if video ><cms:show video /></cms:if>
<!-- Post Content -->
<cms:excerptHTML count='75' ignore='img'><cms:show blog_content /></cms:excerptHTML>
<!-- Read More Button -->
<p class="clearfix"><a href="<cms:show k_page_link />" class="button right"> Read More...</a></p>
</div>
<div class="hr clearfix"> </div>
<cms:if k_paginated_bottom >
<!-- Blog Navigation -->
<p class="clearfix">
<a href="<cms:show k_paginate_link_next />" class="button float"><< Previous Posts</a>
<a href="<cms:show k_paginate_link_prev />" class="button float right">Newer Posts >></a>
</p>
</cms:if>
</cms:pages >
</div>
這裏是CSS
.hr {
border:none;
border-bottom:1px solid #f0f0f0;
border-top:1px solid #d6d6d6;
clear:both; height:0;
line-height:0;
width:100%;
font-size:0;
padding:0 ;margin-bottom :20px;
}
.grid_12 {
display:inline;
float:left;
position:relative;
margin-left:10px;
margin-right:10px;
}
我這麼想嗎?我不是太麻煩的豬
請發佈您的實際生成的HTML標記,而不是模板 –
height:0; //爲什麼0高? – case1352
或者,如果它們不在HTML中,則可能是''表達式不會評估您認爲應該達到的效果。 –