css - 子 div 忽略 Firefox 中的父元素 padding-bottom 但在 chrome 上工作

标签 css firefox cross-browser

为什么 firefox(桌面和安卓)忽略 padding-bottom。 ?

使用 padding-top 可以正常工作,但不能使用 padding-bottom。

火狐

Firefox

Chrome

Chrome

Fiddle here

最佳答案

可能不理想,但您可以在 .list 元素中使用 padding-bottom: 50px 并将其从 .parent 中删除.

Fiddle

关于css - 子 div 忽略 Firefox 中的父元素 padding-bottom 但在 chrome 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39586445/

相关文章:

ios - 在 iOS 版 Chrome 中下载 Apple Pass 时出错

javascript - Ajax 请求和 Firefox + Ghostery

html - 我应该为所有浏览器使用几乎标准模式吗?

html - 在线网站布局与本地不同

HTML 最小宽度有效,最大宽度无效

javascript - 平板电脑上的下拉菜单

html - 使 Bootstrap 的 "Table" "Table-Hover"高亮超出底部边框的左侧

javascript - Firefox Devtools 将大型 Javascript 文件显示为未定义

Angular Animation 在 IE11 和 Firefox 中不转换(在 Chrome 中工作)

html - CSS 悬停、z-index 和 div