包含 iframe 的 JscrollPane 问题
我正在创建一个带有可滚动内容区域的页面,该区域内部必须有一个类似 facebook 的按钮和自定义的滚动条。这不是 jscrollpane 和 facebook iframe 为 Like 按钮设置的问题。我在我拥有的所有浏览器上测试了它,并将其发送给客户以供批准,
我的客户使用的是 Firefox 3.5.7,我使用的是 3.6.10,我的客户注意到了一个错误。基本上,当他滚动时,只要 facebook 之类按钮的 iframe 应该位于文本后面(因为滚动隐藏了溢出),内容就会开始移动。看起来好像在滚动内容时 iframe 停留在原处一秒钟,就像滞后一样。
我已经检查过以确保简单的 CSS 滚动区域可以正常工作,而且确实如此。
这是一些重现问题的简单代码的链接(感谢 vitch): http://jsfiddle.net/wpaflight/zRQ8z/
有其他人遇到过这个问题吗?
I am creating a page with a scrollable content area that has to have a facebook like button inside it and customized scrolling bars. This was not a problem jscrollpane and the facebook iframe set up for the like button. I tested it on all the browsers i had and sent it to the client for approval
my client is using firefox 3.5.7 and i use 3.6.10 and my client has noticed an error. basically while he is scrolling, wherever the iframe of the facebook like button should be behind the text (since overflow is hidden for the scroll) the content starts moving around. It kind of looks like while the scrolling is going on the content where the iframe is stays in place for a second, like it is lagging.
i already checked to make sure a simple CSS scroll area would work fine and it does.
here is a link to some simple code that recreates the issue (thanks to vitch):
http://jsfiddle.net/wpaflight/zRQ8z/
has anyone else had this issue before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前从未听说过类似的事情。您可以尝试将 iframe 的位置设置为相对位置,以使其脱离文档流,看看是否有帮助。
否则,您能否提供一个示例 URL(如果您的项目是私有的,那么显示问题的简化 URL 会很好)?
I haven't heard of anything like that before. You could try setting the position of the iframe to relative to bring it out of the flow of the document to see if that would help.
Otherwise, can you provide an example URL (if your project is private then a simplified URL showing the problem would be great)?