2017-01-24 5 views
0

Google 공유 버튼을 사용하고 있는데 어떤 이유로 팝업 창이 열리지 않고 같은 창에서 전체 화면으로 열립니다.클릭시 Google 공유 팝업창이 열리지 않습니다.

<a class="google-plus" style="display:inline-block" href="https://plus.google.com/share?url=http%3A%2F%2Ftarunkrishna.com%2F" title="Share on Google+"> 
    <span class="fa fa-google-plus"></span> 
</a> 
+0

[팝업 구글 플러스 공유]의 사용 가능한 복제 (http://stackoverflow.com/questions/9022416/google-plus-share-in-a-popup) – jakubbialkowski

답변

0

당신은이 그들이 작동하는 방법이다, <a> 링크가 있습니다. Google+ Share Link documentation에서 onclick 처리기를 포함해야합니다. 전체 문서화 된 예는 다음과 같습니다

<a href="https://plus.google.com/share?url={URL}" onclick="javascript:window.open(this.href, 
    '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img 
    src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a> 
+0

선생님 너무 많이 고마워. 나는 아직 단계를 배우고있다. 나는 결코 끝내지 않을 것이라고 생각했다. 또한 lste 답장으로 미안 해요. –