【发布时间】:2018-08-15 15:28:00
【问题描述】:
我的body 中有类似的东西(简体)
<div id="container">
<article>
text
</article>
</div>
用 css
#container > article
margin-bottom: 50px
overflow: auto
article
display: block
在所有浏览器上,margin-bottom 都会显示,但 Safari 似乎会折叠它。
我阅读了很多有关此问题的信息,但 overflow: auto 并没有立即提供帮助或任何其他技巧。
如果我将 margin-bottom 移动到 css 中的 article 定义,事情会变得非常奇怪,在这种情况下,Safari 会显示边距..
#container > article
/* nothing remains here */
article
display: block
margin-bottom: 50px
overflow: auto
这不是我想要的,因为它会影响 所有 article 标签。
如果有人可以向我解释这一点,并有一个解决方法来实际使 Safari 按预期运行,那将不胜感激。
【问题讨论】:
标签: html ios css safari margin