发新话题
打印

[求解] 使用DIV或表格都无法在b_article-single.html导航栏下面添加广告。求解,谢谢!

使用DIV或表格都无法在b_article-single.html导航栏下面添加广告。求解,谢谢!

经过2天的学习,会简单的修改了!

http://www.173mm8.cn/yejiexinwen/2.html   这个是错位页面!
博客中有3篇测试文章,都出现错位现象。我修改的方法和修改其他页面一样,日志页文章模板却出现错位。请大家帮忙解决。谢谢!
复制内容到剪贴板
代码:
<ul>
<#CACHE_INCLUDE_NAVBAR#>
</ul>
                </div>
<table width="570" height="70" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="bottom">GG广告</td>
  </tr>
</table>
                <div id="divMain">
<#template:article-multi#>
首页模板
复制内容到剪贴板
代码:
        <div class="post-nav"><#template:article_navbar_l#><#template:article_navbar_r#></div>
<table width="570" height="70" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="bottom">GG广告</td>
  </tr>
</table>
        <h4 class="post-date"><#article/posttime#></h4>
        <h2 class="post-title"><#article/title#></h2>
        <div class="post-body"><#article/content#></div>
        <h5 class="post-tags"><#ZC_MSG138#>: <#template:article_tag#></h5>
        <h6 class="post-footer">
                <#ZC_MSG011#>:<#article/author/name#> | <#ZC_MSG012#>:<#article/category/name#></span>
<table width="570" height="70" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="bottom">GG广告</td>
  </tr>
</table>
                <script language="JavaScript" type="text/javascript">strBatchCount+="spn<#article/id#>=<#article/id#>,"</script>
        </h6>
</div>
<ul class="msg trackback">
日志页文章模板

------------------------------------------------------------------------------

下面是用DIV添加的GG广告,也错位!请二楼的朋友看看。
错位演示网址 http://www.b5b8.cn/anquanzixun/1.html
复制内容到剪贴板
代码:
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
                <div class="ggad">
<script type="text/javascript"><!--
google_ad_client = "pub-7361379384693040";
//468x60, 创建于 08-1-5
google_ad_slot = "0510063333";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
                </div>
        <div class="post-nav"><#template:article_navbar_l#><#template:article_navbar_r#></div>
复制内容到剪贴板
代码:
.ggad {
        float:none;
        width: 570px;
        height: 70px;
        vertical-align: middle;
        margin-top: 5px;
        margin-left: 50px;
}
CSS定义

[ 本帖最后由 doubleanti 于 2008-1-8 18:30 编辑 ]

TOP

最好增加div的形式添加广告
ZIPPO广州实体店-全场4折起,售后7天包退换。
支持Z-blog,谴责篡改&去除版权标记的可耻行为
------------------------------------------------------------------------------------------
新手请多看应用教程区Z-wiki,或站内搜索寻找答案
1、Z-blog主题模板以及标签库的说明   2、默认模板右侧栏目代码注释       3、默认CSS样式的注释     
4、Z-BLOG使用小贴士收集         5、加广告请搜索gg/google/广告

TOP

发新话题