我有基于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;
}
我错过了什么吗?我不是太聪明了
答案 0 :(得分:1)
您是否有指向该网站的链接?
你能在源代码中找到丢失的div吗?如果你是,那么它可能是一个CSS问题。如果你在源代码中找不到它,那么它可能是一个PHP问题。
您使用的是什么CMS系统/博客系统?