包含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
我添加了答案,然後爲新角;) –