Skip to content

Commit

Permalink
contentpage description fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeeeoLiu committed Aug 5, 2016
1 parent adc5734 commit 856f1a1
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 39 deletions.
11 changes: 8 additions & 3 deletions css/contentpagestyle2.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
.title{
font-family: 黑体;
font-size: 22px;
font-size: 24px;
font-weight: bold;
}
.main_body{
Expand All @@ -38,10 +38,10 @@
}
.origin{
font-family: 宋体;
font-size: 14px;
font-size: 12px;
color: #999999;
margin: 0;
margin-bottom: 10px;
margin-bottom: 25px;
}
.main_body_div p{
font-family: 微软雅黑;
Expand All @@ -63,4 +63,9 @@
font-size: 12px;
color: #000000;
line-height:0.5em;
}

.greyblank{
background-color: #efefef;
border: none;
}
86 changes: 50 additions & 36 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,70 @@
<!--左一结束 -->
<!--中间表格开始-->
<td valign="top">
<table class="middle" border="0" cellspacing="0" cellpadding="0">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="26" style=";padding-bottom: 15px;">
<div class="position" align="left">当前位置: <a href="<?php echo get_option('home'); ?>">首页</a> >> <a href="<?php echo $catlink?>"><?php echo $catname;?></a></div>
<td class="greyblank" height="15px" border="0" cellspacing="0" cellpadding="0">
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" style="padding-bottom: 15px">
<table class="middle" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" width="832"
style="background-image: url(<?php bloginfo('template_url'); ?>/images/listpageimages/line1.png);background-size: 832px 1px;background-repeat: no-repeat;"></td>
<td height="26" style=";padding-bottom: 15px;">
<div class="position" align="left">当前位置: <a href="<?php echo get_option('home'); ?>">首页</a> >> <a href="<?php echo $catlink?>"><?php echo $catname;?></a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center"><p class="title"><?php the_title(); ?></p></div>
</td>
</tr>
<tr>
<td>
<div align="center"><p class="origin">发表时间:<?php the_time('Y年n月j日') ?> 文章来源:<?php the_author(); ?> 浏览次数:<?php the_views(); ?></p></div>
</td>
</tr>
<tr>
<td>
<div align="left" class="main_body_div"><p class="main_body"><?php the_content(); ?></p></div>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" style="padding-bottom: 15px;padding-top: 20px">
<tr>
<td height="1" width="832"
style="background-image: url(<?php bloginfo('template_url'); ?>/images/listpageimages/line1.png);background-size: 832px 1px;background-repeat: no-repeat;"></td>
<td>
<table border="0" cellspacing="0" cellpadding="0" style="padding-bottom: 15px">
<tr>
<td height="1" width="832"
style="background-image: url(<?php bloginfo('template_url'); ?>/images/listpageimages/line1.png);background-size: 832px 1px;background-repeat: no-repeat;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center"><p class="title"><?php the_title(); ?></p></div>
</td>
</tr>
<tr>
<td>
<div align="center"><p class="origin">发表时间:<?php the_time('Y年n月j日') ?> 文章来源:<?php the_author(); ?> 浏览次数:<?php the_views(); ?></p></div>
</td>
</tr>
<tr>
<td>
<div align="left" class="main_body_div"><p class="main_body"><?php the_content(); ?></p></div>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" style="padding-bottom: 15px;padding-top: 20px">
<tr>
<td height="1" width="832"
style="background-image: url(<?php bloginfo('template_url'); ?>/images/listpageimages/line1.png);background-size: 832px 1px;background-repeat: no-repeat;"></td>
</tr>

</table>
</td>
</tr>
<tr>
<td>
<p class="more"><?php if (get_next_post($catid)) { next_post_link('上一篇: %link','%title',true);} else { echo "已是最新文章";} ?></p>
</td>
</tr>
<tr>
<td>
<p class="more"><?php if (get_previous_post($catid)) { previous_post_link('下一篇: %link','%title',true);} else { echo "已是最后文章";} ?></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<p class="more"><?php if (get_next_post($catid)) { next_post_link('上一篇: %link','%title',true);} else { echo "已是最新文章";} ?></p>
</td>
</tr>
<tr>
<td>
<p class="more"><?php if (get_previous_post($catid)) { previous_post_link('下一篇: %link','%title',true);} else { echo "已是最后文章";} ?></p>
<td class="greyblank" height="15px" border="0" cellspacing="0" cellpadding="0">
</td>
</tr>
</table>
Expand Down

0 comments on commit 856f1a1

Please sign in to comment.