当您将谷歌地图和加号按钮放在同一页面上时,似乎会产生一些奇怪的渲染问题。在这些带有和不带有加号按钮的示例中。如果您单击标记,它将放大它,然后单击重置以缩小。当您手动放大和缩小按钮时,您会看到地图不会呈现。为什么?有人知道解决这个问题的方法吗?
编辑:这个问题似乎只发生在谷歌浏览器中......讽刺!
Both worked fine for me in Firefox 6. In IE9 the google +1 button didn't even show up at all. No surprise there, really, although it should work. That might be, however, because you don't have fully valid HTML in your test document (with html and body tags). You might want to try that first.
You can also try using the HTML 5 tag for the google plus one button. I feel that is a safer alternative and it is fully HTML5-valid:
<div class="g-plusone" data-size="medium" data-annotation="inline" data-width="250" ></div>
Check out the +1 Button Reference under "+1 Tag Attributes" for a complete list of possible attributes