Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在检测 div 内的溢出时遇到问题。我正在使用萤火虫来调试我的 html。
在我的萤火虫中,我看到我的 div 具有相同的 clientHeight 和 scrollHeight,即使 Firefox 使用垂直滚动条呈现它(这应该意味着 scrollHeight > clientHeight 对吗?)
这是一个已知的错误?我没有用其他浏览器测试过。有什么解决方法吗?
仅供参考,我的 div 溢出:自动,我正在使用 Firefox 6.0