百度分享自定义图标,修改默认【更多】图片

墨蓝 2022-07-13 08:58 311阅读 0赞

篡改百度分享【更多】的图标,重点是覆盖样式bsd_more,着重介绍思路

  1. <html>
  2. <head></head>
  3. <style>
  4. .ico_share {width: 20px;height: 20px;background: url(https://ofmw931zf.qnssl.com/admin/portal/like.png) no-repeat;background-size: 100%}
  5. dl.funcList {display: block;margin: 80px auto;width: 320px;}
  6. dl.funcList dd {display: block;float: left;cursor: pointer;position: relative; width: 150px;margin-right: 20px;background: #16181a;text-align: center;font-size: 14px;color: #fff;border-radius: 30px;height: 60px;line-height: 60px}
  7. dl.funcList dd:last-child {margin-right: 0;background: #00c1e0}
  8. dl.funcList dd:last-child:hover {background: #26b6d9}
  9. dl.funcList dd a {display: block;color: #fff;}
  10. .bds_more {font-size: 14px;color: #fff !important;display: block;position: absolute;top:0;left: 0;z-index: 1;width: 150px !important;height: 60px !important;background: transparent !important;}
  11. </style>
  12. <body>
  13. <dl class="funcList clr">
  14. <dd><a href="#"><span class="ico_like vm disline mr5"></span>收藏</a></dd>
  15. <dd>
  16. <a class="bds_more ds" data-cmd="more" href="#">
  17. <span class="ico_share vm disline mr5"></span>分享
  18. <div class="bdsharebuttonbox">
  19. <a class="bds_more" data-cmd="more" href="#">
  20. </a>
  21. </div>
  22. </a>
  23. <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":["weixin","sqq","tsina","fbook","qzone","renren","tqq","isohu","ty"],"bdPic":"","bdStyle":"1","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='./static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
  24. </dd>
  25. </dl>
  26. </body>
  27. </html>

比如效果图:

Center

发表评论

表情:
评论列表 (有 0 条评论,311人围观)

还没有评论,来说两句吧...

相关阅读