Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 在门户文章页面怎么设置百度分享的位置?

[复制链接]
寻找小强 发表于 2013-1-30 11:23:46 | 显示全部楼层 |阅读模式
在给文章view。htm页面加分享代码。
代码放到$content[content]位置下面。
默认是居右显示的,怎么设置居中或者居左?记得有人发过类似的设置代码我找不到了。。

  1.      <div class="vm_pagetitle xw1">$content[title]</div>
  2. <!--{/if}-->
  3. $content[content]
  4. <!-- Baidu Button BEGIN -->
  5. <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
  6. <span class="bds_more">分享到:</span>
  7. <a class="bds_mshare"></a>
  8. <a class="bds_tsina"></a>
  9. <a class="bds_sqq"></a>
  10. <a class="bds_qzone"></a>
  11. <a class="bds_tqq"></a>
  12. <a class="bds_renren"></a>
  13. <a class="bds_t163"></a>
  14. <a class="bds_hi"></a>
  15. <a class="bds_bdhome"></a>
  16. </div>
  17. <script type="text/javascript" id="bdshare_js" data="type=tools&uid=6446487" ></script>
  18. <script type="text/javascript" id="bdshell_js"></script>
  19. <script type="text/javascript">
  20. document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
  21. </script>
  22. <!-- Baidu Button END -->
  23. </td></tr></table>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
厦新情缘 发表于 2013-2-13 02:00:52 | 显示全部楼层
没试过,楼主的方法对吗?
回复

使用道具 举报

边关小站 发表于 2013-2-13 04:55:05 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

小强45645 发表于 2013-2-13 11:30:26 | 显示全部楼层
谢谢楼主,真是太好了
回复

使用道具 举报

zhzh8015 发表于 2013-2-14 22:32:54 | 显示全部楼层
感谢分享,呵呵
回复

使用道具 举报

iops 发表于 2013-2-14 23:22:31 | 显示全部楼层
求分享
回复

使用道具 举报

bellking 发表于 2013-5-19 21:03:07 | 显示全部楼层
X3.0的不行啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-4 17:21 , Processed in 0.092015 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表