包含CF7的div是隐藏的,直到用户点击一个图标,然后它的图标被替换为另一种颜色在窗体右下角的一个,所以我使用这是一个固定的div。问题在于,当出现错误/成功消息时,元素移出窗体(和视口),我需要展开窗体才能看到所有元素或解决方案。联系表格7不扩展在一个固定的父div
My CF7 after an error/success message
我的相关代码:
/*Div for the CF7*/
#div-mail {
display: none;
position: fixed;
bottom: 4%;
right: 3%;
}
.wpcf7-form {
margin: 30px 30px 30px 30px;
width: 350px;
height: 286px;
}
/*First icon*/
#img-mail {
position: fixed;
bottom: 3%;
right: 3%;
cursor: pointer;
}
/*second icon*/
#img-mail-active {
position: fixed;
bottom: 3%;
right: 3%;
cursor: pointer;
display: none;
z-index: 1;
}
**地方尝试用**最小高度来取代它** –
呀!这个伎俩,非常感谢。我编辑了我的问题以显示高度属性。 – NullEins
我添加了答案,然后为新角;) –