FireFox 16px DIV 之间的间隙问题
我的网站在 Chrome 中正确呈现,但在 FF 中,div 之间显示 16px 间隙。 这里可能出了什么问题?
应用程序链接:http://simateriaisportal.appspot.com (Conta -> 仪表板)。
我之前发布的代码工作正常,当内容(仪表板)动态填充时出现问题
My website renders correctly in Chrome but it shows a 16px gap, between divs, in FF.
What could be wrong here?
Link to Application: http://simateriaisportal.appspot.com
(Conta -> Dashboard).
The code i posted before was working correctly, the problem comes when content (dashboard) is filled dynamicaly
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否尝试过使用 firebug 来找出填充的来源?
Have you tried to use firebug to find out where the padding is coming from?
您在此处发布的内容在 Chrome 和 Firefox 中呈现类似的效果。它指向 YUI Base 或 YUI Reset(或此代码之外的其他内容)。
此外,Firefox 渲染在顶部和底部有额外的空间。白色行的底部和表格本身的顶部。所以,这不仅仅是一个 div 的问题。
What you've posted here renders similarly in Chrome and Firefox. That points to YUI Base or YUI Reset (or something else outside of this code).
Also, the Firefox render has extra space at the top & bottom of the white rows and at the top of the table itself. So, it's not just about a div.
真的不知道在你的链接中寻找什么,但是,你的div“panelDB”有5px的顶部和底部的填充,并且你里面的表格有10px的顶部和底部的边距......似乎就是你的正在谈论...删除两个就可以了:)
Don't really know what to look for in your link, but, you div "panelDB" has a padding of 5px top and bottom, and you table inside it has a margin of 10px top and bottom... seems to be what you're talking about... remove does two and your good to go :)
看起来你已经成功了;您应该发布解决方案并将其标记为答案。也许我们都可以学到一些东西。
Looks like you got it working; you should post the solution and mark it as the answer. Maybe we can all learn something.