时间:2019-05-03 来源:小程序工厂
补充:我把css中的【.contact-btn】注释掉就好了,这个太扯了。。。
我把css样式一个一个去掉尝试,发现是【position: static;】存在时就出问题了,官方的同学可以重现下
你好,没有复现你说的情况,应该是你的代码逻辑上出了问题吧
页面简单到爆,js就是跳转页面,无逻辑。以下贴出完整代码,供参考,还请帮忙再看看,谢谢
===========================================
.container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.account {
width: 77.6%;
display: flex;
flex-direction: row;
align-items: left;
}
.account .left {
width: 50%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: left;
}
.username {
font-family: SourceHanSans;
font-size: 5.86vw;
color: #231815;
margin-top: 25%;
}
.gender {
font-family: SourceHanSans;
color: #5e5e5e;
font-size: 3.73vw;
padding-top: 5%;
}
.account .right {
width: 50%;
display: flex;
flex-direction: row-reverse;
}
.avatar {
width: 25.33vw;
min-height: 25.33vw;
max-height: 25.33vw;
margin-top: 10%;
margin-right: 5%;
border-radius: 50%;
}
.seperator {
width: 77.6%;
margin-top: 4%;
margin-bottom: 4%;
}
.link {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 77.6%;
}
.text {
font-size: 4.8vw;
line-height: 4.8vw;
font-family: SourceHanSans;
color: #535353;
margin-top: 3%;
}
.blog-img {
width: 3.73vw;
height: auto;
margin-top: 2%;
}
.report-img {
width: 4.53vw;
height: auto;
margin-top: 2%;
}
.ask-img {
width: 4.8vw;
height: auto;
margin-top: 2%;
}
.contact-img {
width: 5.06vw;
height: auto;
}
.contact-btn {
width: 5.06vw;
height: 4.8vw;
margin-top: 2%;
position: static;
display: flex;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
box-sizing: none;
font-size: none;
text-align: none;
text-decoration: none;
line-height: none;
border-radius: 0;
overflow: none;