是什么导致父容器切断子元素中的内容? [英] What causes a parent container to cut off content in child element?
本文介绍了是什么导致父容器切断子元素中的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Mac Safari和Chrome上,此黑暗的选择框正确显示:
On Mac Safari and Chrome, this dark select box appears correctly:
在iOS Safari中,它会在所选div的边界处被截断:
In iOS Safari, it gets cut off at the border of the selected div:
什么会导致这种情况发生?以下是选定父级的样式:
What could make that happen? Here are the styles of the selected parent:
并在选择框上:
推荐答案
选择框的父级之一隐藏了溢出y.
One of the parents of the select box had overflow-y hidden.
这篇关于是什么导致父容器切断子元素中的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文