网站首页 > 技术文章 正文
<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语言基础知识必备—读书笔记
- 最近发表
- 标签列表
-
- cmd/c (90)
- c++中::是什么意思 (84)
- 标签用于 (71)
- 主键只能有一个吗 (77)
- c#console.writeline不显示 (95)
- pythoncase语句 (88)
- es6includes (74)
- sqlset (76)
- apt-getinstall-y (100)
- node_modules怎么生成 (87)
- chromepost (71)
- flexdirection (73)
- c++int转char (80)
- mysqlany_value (79)
- static函数和普通函数 (84)
- el-date-picker开始日期早于结束日期 (76)
- js判断是否是json字符串 (75)
- c语言min函数头文件 (77)
- asynccallback (87)
- localstorage.removeitem (77)
- vector线程安全吗 (73)
- java (73)
- js数组插入 (83)
- mac安装java (72)
- 无效的列索引 (74)
