Webkit 似乎对百分比宽度/高度有问题
我正在尝试在网站上的问题之间设置一些滑动转换。 中表现出奇怪的行为,
这一切在 Firefox 中都能完美运行,但在 Webkit 网站
我将其归结为以下事实:如果我将 css({'bottom':'-100%'})
或 css({'left':'-100%'})
替换为实际值,问题出在 离开。但这并不理想,所以我想知道是否存在任何人都知道的浏览器错误并进行了修复。
远景,但你不问你就得不到!
I am trying to set up some sliding transitions between questions on a site. It all works perfectly in Firefox, but exhibits strange behaviour in Webkit
I have boiled it down to the fact that if I replace the percentages in css({'bottom':'-100%'})
or css({'left':'-100%'})
with actual values, the problem goes away. But this isn't ideal, so I wondered if there was a browser bug anyone was aware of, with a fix.
Long shot, but you don't ask you don't get!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的javascript库(因为我不认为这是你的代码)持有错误。
而不是100% 99% .. 1% 0
它正在做100% 99px .. 1px 0,
也许添加具有固定尺寸和相对位置的正确父级会有所帮助,但无论如何,这是该库中的一个错误。在任何地方堆叠没有固定尺寸的百分比从来都不是一个好主意。
Your javascript library ( since I don't think it's your code ) is holding it wrong.
instead of going 100% 99% .. 1% 0
It's doing 100% 99px .. 1px 0,
Maybe adding proper parent's with fixed dimensions and relative positions will help, but it's a bug in that library anyway. It's never a good idea to stack percents with no fixed dimensions anywhere.