优化菜单显示,修复在某些浏览器窗口大小下菜单不显示的问题。

This commit is contained in:
hym 2024-10-21 15:35:56 +08:00
parent f1f3bdec5b
commit 9445054fe3
1 changed files with 8 additions and 11 deletions

View File

@ -227,8 +227,9 @@ export default {
methods:{
//1400
changeClass() {
let ww = document.body.clientWidth;
if( ww > 1300 ){
// let ww = document.body.clientWidth;
let ww=window.innerWidth;
if( ww > 1366 ){
this.navShow=true
} else{
this.navShow=false
@ -297,7 +298,7 @@ export default {
}
// .menu>li>a
@media (max-width: 1300px){
@media (max-width: 1366px){
.container_a{
padding-top:0;
}
@ -308,10 +309,10 @@ export default {
position: relative;
}
header #topnanv{
width: 50%;
width: 350px;
margin:0 auto;
left: 22%;
top: 90px;
right: 25px;
top: 40px;
position: absolute;
z-index: 45;
@ -339,8 +340,4 @@ export default {
font-size: 15px;
}
</style>
</style>