问题描述
我正在使用 bootstrap-select 它在 chrome 上看起来很正常,但在 safari 上它被拉伸了。附上一张图片:
不确定是什么原因造成的。我在我的工作中使用 bootstrap,它唯一的 boostrap-select / bootstrap-selectpicker 就是这样做的
解决方法
已解决:
检查页面后,我意识到它受到高度设置为 100% 的影响。
我更新了
.bootstrap-select .dropdown-toggle .filter-option {
height:100%;
}
到
.bootstrap-select .dropdown-toggle .filter-option {
height:auto!important;
}
这根本不影响 chrome 上的下拉菜单,但解决了 safari 上的问题