优化 notfound界面响应式布局
This commit is contained in:
@@ -3,7 +3,7 @@ import { onMounted, onUnmounted, ref } from 'vue';
|
|||||||
const containerHeight = ref('800px');
|
const containerHeight = ref('800px');
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
document.title = '404 不存在的页面';
|
document.title = '404 不存在的页面';
|
||||||
containerHeight.value = window.innerHeight > 500 ? window.innerHeight -85 + 'px' : '390px';
|
containerHeight.value = window.innerHeight > 500 ? window.innerHeight - 90 + 'px' : '390px';
|
||||||
})
|
})
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
document.title = '特恩(TONE)';
|
document.title = '特恩(TONE)';
|
||||||
@@ -35,4 +35,10 @@ onUnmounted(() => {
|
|||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
height: v-bind(containerHeight);
|
height: v-bind(containerHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
.content-container {
|
||||||
|
height: calc(v-bind(containerHeight) + 15px);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user