css – Overflow:overlay在firefox中不起作用

前端之家收集整理的这篇文章主要介绍了css – Overflow:overlay在firefox中不起作用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的网站上,我需要使用css属性overflow:overlay用于< div&gt ;. 但是,在浏览器中并没有渲染,而是在firebug中检查css,甚至没有显示出来,而是在Chrome中运行。我没有测试出野生动物园。 我必须改变什么来获得溢出:overlay css属性工作? 谢谢

解决方法

溢出的可能值为:
visible
hidden
auto
scroll
@H_301_8@参见herehere讨论这些。

@H_301_8@在不同浏览器中使用任何其他值将会产生不可预测的结果,因为它们处理不正确的值不同。

@H_301_8@编辑:在发表评论后,我已经设法提到了overflow:overlay here

@H_301_8@覆盖描述为:

@H_301_8@Content is clipped and scroll bars are added when necessary.

@H_301_8@重要的是,它还表示只能在Safari或Chrome(即WebKit)中工作。

@H_301_8@This item在WebKit bugzilla上建议在任何情况下这个世界都不长久:

@H_301_8@WebKit currently has a proprietary CSS overflow value called “overlay” which is undocumented and as far as I can tell from reading the code works exactly like “auto”.

@H_301_8@We should either remove it or rename it to “-webkit-overlay”.

@H_301_8@更新2016年3月

@H_301_8@看起来像溢出:覆盖没有消失。有迹象表明它正在进入标准。

@H_301_8@覆盖和自动之间的区别只是滚动条会显示页面内容的顶部,而不会导致它占用布局空间。

@H_301_8@见here for the discussion

猜你在找的CSS相关文章