[英]ShareThis button not working on mobile, when I click on it there's no modal window or popup
我用Laravel制作了这个网站。 网站上有一个自定义的ShareThis按钮,用于共享内容。 它可以在我的台式机上正常工作,但在移动设备上似乎没有任何作用。
这些在head标签中:
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "a499bbb4-baeb-49f5-9211-1489057bb6b5", doNotHash: false, doNotCopy: false, hashAddressBar: false, onhover: false});</script>
这是自定义按钮:
<span class='st_sharethis_custom' st_url="{{ url('/'.$quote->quote_id) }}" st_summary="{{ $quote->quote_text or "" }}" id="sharethis"><div class="round-share"><i class="fa fa-share-alt" aria-hidden="true"></i></div></span>
我还尝试将CSS直接分配给span标签,但在移动设备上均不起作用:
<span class='round-share st_sharethis_custom' st_url="{{ url('/'.$quote->quote_id) }}" st_summary="{{ $quote->quote_text or "" }}" id="sharethis"><i class="fa fa-share-alt" aria-hidden="true"></i></span>
我将页面从http移到了https, 这引起了问题。
我需要更改这一行:
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
到这行:
<script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.