要禁用“欢迎回来”消息中的Google+签名,此调整
iframe[src^="https://apis.google.com"] {
display: none;
}对我来说效果非常好。
在我的开发过程中,我注意到,如果页面上有一个Google+交互式帖子,当我从按钮触发它时,这段代码也会隐藏Google+交互式帖子。如果您将
iframe[src^="https://apis.google.com"] {
display: visible;
}交互式帖子将开始工作,但谷歌标志“欢迎回来的消息”将再次出现,这是我不想要的。
我的代码片段如下:
<html>
<head>
...
<style type="text/css">
iframe[src^="https://apis.google.com"] {display: none;}
...
</style>
</head>
<body>
...
<div class="col-md-2 text-center" >
<button class="g-interactivepost btn btn-danger"
data-contenturl="http://xxxxxxx.appspot.com"
data-contentdeeplinkid=""
data-clientid="XXXXXXXXXXX.apps.googleusercontent.com"
data-cookiepolicy="single_host_origin"
data-prefilltext="I have the bragging right friends! Check out My JAMB Pre-Test Score. Beat me if you can #IAMREADYFOREXAMS"
data-calltoactionlabel="WANT_TO_SEE_IT"
data-calltoactionurl="http://xxxxxxxxx.appspot.com/guest"
data-calltoactiondeeplinkid="">
<i class="glyphicon glyphicon-share"></i> Share and Brag
</button>
</div>
...
</body>
</html>我真的很想知道如何让这个Google+互动帖子工作,而我的Google+签名“欢迎回来的消息”仍然是隐藏的iframe css样式。
发布于 2014-01-02 22:35:43
不需要在这里再次张贴解决方案。检查这个问题的答案,以获得我想出的最佳解决方案。How to stop Google+ Sign-In Button from popping up the message “Welcome back, you've already connected with this app via Google+ Sign-In as …
https://stackoverflow.com/questions/20768303
复制相似问题