【发布时间】:2016-11-08 22:13:47
【问题描述】:
下面的图表适用于 Chrome 和 Firefox,但 Safari 正在缩小框的宽度。这也发生在移动客户端上。我将图表容器的 css 和完整标记和 css 的代码笔包括在内。
https://codepen.io/juancho1/pen/akyNmp
#chart-container{
width: 100%;
height: auto;
border: 1px solid #39c3ec;
/*display: -webkit-box;*/
display: -moz-box;
display: -ms-flexbox;
display: -moz-flex;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
overflow-x: scroll !important;
}
我希望以前有人遇到过这个特定问题。在寻找可能的解决方案时,我发现 Safari 在 flexbox 方面存在一些问题,并尝试了我见过的大多数解决方案。它也可能与弯曲方向有关。
如果有人提供任何提示,我将不胜感激! 谢谢
【问题讨论】: