网站首页 > 技术文章 正文
<div class="fenx bdsharebuttonbox">
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到微博"></a>
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到qq"></a>
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到qq空间"></a>
</div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
自己做的分享的小图标覆盖掉功能自带的:
.fenx a{ display: inline-block; width: 25px; height: 25px !important;padding: 0 !important; margin: 0 10px 0 0 !important; float: left;}
.fenx a:nth-child(1){ background: url(./images/fenx_01.jpg) no-repeat;}
.fenx a:nth-child(2){ background: url(./images/fenx_02.jpg) no-repeat}
.fenx a:nth-child(3){ background: url(./images/fenx_03.jpg) no-repeat}
.fenx a:nth-child(4){ background: url(./images/fenx_04.jpg) no-repeat}
我使用的是 利用背景图覆盖掉
*注意:
当页面中有一个位置含有分享,可能整个页面的图片都有整个分享功能了,办法如下:
需要找到分享盒子的类名,然后用display=none 再加个优先级 隐藏掉,这样就完美。
.sr-bdimgshare{display:none!important;}
猜你喜欢
- 2024-09-12 5.标准文档结构(文档结构是什么)
- 2024-09-12 定位网页元素—第八章(网页定位怎么写)
- 2024-09-12 HTML5常用的标签 |实用干货(html5常用标签大全)
- 2024-09-12 5、标签分类和元素转换(标签元素是什么)
- 2024-09-12 「HTML二」 html常用标签(html常用标签有哪些)
- 2024-09-12 肖sir_html之A链接标签认识(2)(链接标签href属性可以指向)
- 2024-09-12 Foundation 提醒框(提示框怎么设置)
- 2024-09-12 HTML详细介绍1(“html”)
- 2024-09-12 HTML5新增了哪些结构标签?(html5新增结构化标签)
- 2024-09-12 全程软件测试(八十三):HTML语言基础知识必备—读书笔记
- 1512℃桌面软件开发新体验!用 Blazor Hybrid 打造简洁高效的视频处理工具
- 552℃Dify工具使用全场景:dify-sandbox沙盒的原理(源码篇·第2期)
- 503℃MySQL service启动脚本浅析(r12笔记第59天)
- 481℃服务器异常重启,导致mysql启动失败,问题解决过程记录
- 479℃启用MySQL查询缓存(mysql8.0查询缓存)
- 459℃「赵强老师」MySQL的闪回(赵强iso是哪个大学毕业的)
- 439℃mysql服务怎么启动和关闭?(mysql服务怎么启动和关闭)
- 436℃MySQL server PID file could not be found!失败
- 最近发表
- 标签列表
-
- c++中::是什么意思 (83)
- 标签用于 (65)
- 主键只能有一个吗 (66)
- c#console.writeline不显示 (75)
- pythoncase语句 (81)
- es6includes (73)
- windowsscripthost (67)
- apt-getinstall-y (86)
- node_modules怎么生成 (76)
- chromepost (65)
- c++int转char (75)
- static函数和普通函数 (76)
- el-date-picker开始日期早于结束日期 (70)
- js判断是否是json字符串 (67)
- checkout-b (67)
- c语言min函数头文件 (68)
- localstorage.removeitem (74)
- vector线程安全吗 (70)
- & (66)
- java (73)
- js数组插入 (83)
- mac安装java (72)
- eacces (67)
- 查看mysql是否启动 (70)
- 无效的列索引 (74)