移动端w-full
This commit is contained in:
tangly1024
2021-12-23 13:06:22 +08:00
parent e851877c47
commit 1fab66a8de
3 changed files with 6 additions and 6 deletions

View File

@@ -102,6 +102,6 @@ function updateHeaderHeight () {
if (window) {
const headerElement = document.getElementById('header')
console.log(headerElement, window.innerHeight)
headerElement.style.setProperty('height', window.innerHeight + 'px')
headerElement?.style?.setProperty('height', window.innerHeight + 'px')
}
}