答案 0 :(得分:2)
问题是您已将profile-image
类设为width:1000px
如果您使用硬编码值设置css,则无法将其设置为响应式布局,因为您未在任何media-query
我删除了width:1000px
和 seems to work fine here
.profile-image{
margin: 50px auto !important;
text-align: center !important;
position: relative;
/* notice that "width" has been removed*/
}
如果您坚持使用width:1000px
,请将其包装在media-query:
@media only screen
and (min-width : 1224px) {
.profile-image{
margin: 50px auto !important;
text-align: center !important;
width: 1000px;
position: relative;
}
}
修改强>
由于您在自定义CSS中的规则
,因此Panel无法正常工作.person-info{
float: right;
margin: -40px 71px -40px auto; /* this wrapper here is
pushing it 40px left of
screen and hence responsiveness is lost totally */
width: 808px; /* avoid fixed width without media-query*/
}
删除它们,然后 see it working (添加红色边框以显示大纲以供演示)