ZeroClipboard:.swf 位置不正确
尝试将 Zeroclipboard 正确定位,但即使遵循 Wiki,事情也没有按预期工作。
我将剪贴板区域包含在一个单独的 div 中,然后我将它们粘贴到两个区域。问题在于,剪贴板影片始终显示太高约 10 像素,并且离左侧太远 10 像素(因此从可单击区域中删除了高字符的顶部和框中的最后几个字符)。有没有人见过这个问题或找到解决办法?代码如下:
<div class="ad-copy-container" style="display:inline-block;position:relative;">
<span class="ad-id-string-text">Copy Button Text</div>
</div>
<script type="text/javascript">
// Clip Stuff
copyButton.glue('.ad-id-string-text','.ad-copy-container');
</script>
Trying to get zeroclipboard positioned properly, and things aren't working quite as expected, even while following the Wiki.
I've got my clipboard area contained within a separate div, and then I'm gluing to both of them. The problem is that the clipboard movie is consistently appearing about 10px too high, and 10px to far to the left (thus removing the tops of tall characters and the last several characters in the box from the clickable area). Has anyone seen this problem or found a fix? Code below:
<div class="ad-copy-container" style="display:inline-block;position:relative;">
<span class="ad-id-string-text">Copy Button Text</div>
</div>
<script type="text/javascript">
// Clip Stuff
copyButton.glue('.ad-id-string-text','.ad-copy-container');
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最终在一段时间延迟中进行了黑客攻击,调整了容器的大小并嵌入。这不是一个很好的解决方案,但它确实有效。
Ended up hacking in a time delay which resized the container and embed. Not a great solution, but it works.
尝试从这里下载它
下载zeroclipboard.swf
try to download it from here
download zeroclipboard.swf