微信分享到朋友圈按钮 右上角提示

Posted 水狼一族

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微信分享到朋友圈按钮 右上角提示相关的知识,希望对你有一定的参考价值。

<html>
<head>
<meta charset="utf-8">
</head>
<style>
#shareit {
  -webkit-user-select: none;
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  text-align: center;
  top: 0;
  left: 0;
  z-index: 105;
}
#shareit img {
  max-width: 100%;
}
.arrow {
  position: absolute;
  right: 10%;
  top: 5%;
}
#share-text {
  margin-top: 400px;
}
</style>
</head>
<body>
<a id="share_btn" href="####">分享到朋友圈</a>
<div id="shareit"> 
  <img class="arrow" src="http://dev.vxtong.com/cases/nuannan/imgs/share-it.png"> 
  <a href="#" id="follow"> 
    <img id="share-text" src="http://dev.vxtong.com/cases/nuannan/imgs/share-text.png">
  </a>
</div>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
<script>
  //立即分享到微信朋友圈点击事件
  $("#share_btn").on("click", function() {
      $("#shareit").show();
  });
  
  
  $("#shareit").on("click", function(){
    $("#shareit").hide();  
  })
</script>
</body>
</html>

代码运行结果图如下:

以上是关于微信分享到朋友圈按钮 右上角提示的主要内容,如果未能解决你的问题,请参考以下文章

微信里的链接,提示要分享到朋友圈或者转发才能看到内容是怎么设置的?

微信H5页面里面可以做一个按钮直接分享到朋友圈吗

vue项目中分享到朋友圈,调用微信接口

微信H5隐藏分享给朋友、分享到朋友圈按钮

2行代码实现小程序直接分享到微信朋友圈功能

微信开发笔记-调用自定义分享接口