关闭模式然后刷新页面后,我的页面不会加载当您在页面的某个位置时通常显示的项目(例如:占文档长度的75%)。
我的网站是http://www.bsrp.eu/tijdelijk/index.php,如果你去联系>然后点击contact form> Close it with the cross> Refresh the page..
它不会显示标题和图像。 (直到你滚动,但那是因为我的jquerys)
有人知道问题是什么?
使用javascript完成模态,这是代码:
var modal = document.getElementById('myModal');
var btn = document.getElementById("myBtn");
var span = document.getElementsByClassName("close")[0];
btn.onclick = function () {
modal.style.display = "block";
};
span.onclick = function () {
modal.style.display = "none";
};
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
当然有一些css,但我猜问题是在javascript中