css - IE11 & justify-content 问题
问题描述
我的 Angular 6 应用程序同时在 IE 11 和 Chrome 最新版本上运行。在那里,我有两个按钮使用下面的 CSS3 相互分隔。
.my widget .my footer {
display: flex;
justify-content: space-evenly;
margin: 3px auto 6px;
}
使用上面的 CSS 它在 Chrome 浏览器中效果很好,并且按钮彼此分开,中间有一些空间,但是在 IE11 上,当我检查时,我在下面的 CSS 中看到了红线
justify-content: space-evenly;
我试过了,justify-content:space-between
但我仍然看到按钮相互连接,中间没有空格。
解决方案
我已经使用space-around
如下方式来使事情正常进行。
justify-content: space-around;
这适用于 IE11 和 chrome。感谢@G-Cyrillus 对此进行调查。
推荐阅读
- css - CSS 选择器 - 一个类/元素,它有一个带有类的元素
- python - 将列四舍五入到小数点后两位
- java - 关闭`MongoClient`
- javascript - 使用 MP4box.js 和 onSegment 回调不调用 no websocket
- html - 当视口缩小时,为什么 min-height 不像 min-width 那样工作?
- sql - Postgresql 分层(树)查询
- python - Pandas DataFrame 中的值划分
- sql - SQL - 选择同一组中的人
- java - 微服务之间的通信和使用 REST 的内聚
- vega - 圆形打包:打包转换需要哪种形状的数据?