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



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


<html>
<head></head>
<style>
.ico_share {width: 20px;height: 20px;background: url(https://ofmw931zf.qnssl.com/admin/portal/like.png) no-repeat;background-size: 100%}
	dl.funcList {display: block;margin: 80px auto;width: 320px;}
	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}
	dl.funcList dd:last-child {margin-right: 0;background: #00c1e0}
	dl.funcList dd:last-child:hover {background: #26b6d9}
	dl.funcList dd a {display: block;color: #fff;}
	.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;}

</style>

<body>
<dl class="funcList clr">
	<dd><a href="#"><span class="ico_like vm disline mr5"></span>收藏</a></dd>
	<dd>
		<a class="bds_more ds" data-cmd="more" href="#">
			<span class="ico_share vm disline mr5"></span>分享
			<div class="bdsharebuttonbox">
				<a class="bds_more" data-cmd="more" href="#">
				</a>
			</div>
		</a>
		<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>
	</dd>
</dl>
</body>
</html>



比如效果图:




                
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

多来哈米

还可以打赏???来试一毛

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值