【发布时间】:2016-06-25 02:51:35
【问题描述】:
我之前提出过这个问题,但很少有人评论问题的格式不正确,所以我想再试一次。
我在 Safari 浏览器中的 flexbox 遇到问题。在 Safari 浏览器中预览页面时,我的 section 中的 .div .memeber-card 重叠。
我使用了一个 Autoprefixer 网站,这是在此网站上向我推荐的,但这并没有解决问题。
有人可以快速查看我的 css,并告诉我,Safari 浏览器有什么问题吗?
section {
color: aliceblue;
width: 100%;
margin: 0 auto;
}
.members {
width: 50%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.member-card {
padding: 2%;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-flex-basis: 21%;
-ms-flex-preferred-size: 21%;
flex-basis: 21%;
margin-bottom: 5px
}
.member-image {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
text-align: center;
max-width: auto;
text-align: center;
display: block;
}
.team-body {
background-image:
-webkit-linear-gradient(bottom, whitesmoke, rgba(255,255,255,0) 99%), url('../img/team-2-page.jpg');
background-image:
linear-gradient(0deg, whitesmoke, rgba(255,255,255,0) 99%), url('../img/team-2-page.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 100% 0%;
}
/****Nav***/
.teamnav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.teamnav ul {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.teamnav a {
text-decoration: none;
padding: 0 20px 0;
height: 70px;
line-height: 70px;
font-family: "Pontano Sans", Helvetica, Arial, sans-serif;
}
【问题讨论】: