2012-10-23 122 views
-2

我有基於php的博客。它一直很好,但我',重新佈局頁面和某些div現在沒有顯示出來。我無法弄清楚爲什麼?這是標誌。它的div與他們的類hr。某些分區不顯示

<div class="hr grid_12 clearfix">&nbsp;</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">&nbsp;</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> &bull; <cms:date k_page_date format='jS M, y'/> &bull; <a href="#"><cms:show k_comments_count /></a></p> 
       <div class="hr dotted clearfix">&nbsp;</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">&nbsp;</div> 


      <cms:if k_paginated_bottom > 
      <!-- Blog Navigation --> 
      <p class="clearfix"> 
       <a href="<cms:show k_paginate_link_next />" class="button float">&lt;&lt; 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; 
} 

我這麼想嗎?我不是太麻煩的豬

+2

請發佈您的實際生成的HTML標記,而不是模板 –

+0

height:0; //爲什麼0高? – case1352

+0

或者,如果它們不在HTML中,則可能是''表達式不會評估您認爲應該達到的效果。 –

回答

1

你有一個網站的鏈接?

你是否能夠在源代碼中找到丟失的div?如果你是,那麼它可能是一個CSS問題。如果你在源代碼中找不到它,那麼這可能是一個PHP問題。

您正在使用什麼CMS系統/博客系統?