gpt4 book ai didi

css - 使用 Firefox 和 IE 时,Mediawiki 媒体查询不会对浏览器调整大小生效

转载 作者:太空宇宙 更新时间:2023-11-04 03:06:52 25 4
gpt4 key购买 nike

<meta name="viewport" content="width=min-width, initial-scale=1.0">




@media (max-width: 455px) and (orientation: portrait) {

#border-search {
display: none;
}



#n-recentchanges {
visibility: hidden;
}

#n-randompage {
display: none;
}

/*sidebar appearance*/

#column-one {
background: none repeat scroll 0 0 #5B5B5B;
float: left;
text-align: center;
margin: 0 0 0 1%;
min-height: 149px;
padding: 10px 20px;
position: absolute;
font-size: 90%;
top: 5px;
height: 1px;
left: 6%;
width: 15%;
}

#n-home {
position: relative;
top: 0px;
left: -8px;
}

#n-sign-up {
position: relative;
top: 5px;
left: 0px;
}

#n-help {
position: relative;
top: 13px;
left: -4px;
}

#n-add-pix {
position: relative;
top: 19px;
left: 0px;
}

#column-content {
background: none repeat scroll 0 0 #5B5B5B;
float: right;
margin: 0 1%;
padding: 10px;
width: 70%;
position: relative;
top: 0px;
left: -10%;

}


#button .hidetext {
background: none repeat scroll 0 0 #5B5B5B;
display: block;
color: #99D9EA;
margin: 0 1%;
position: relative;
float: right;
border: 0px;
top: 95px;
left: 53%;
}

#ca-edit {
position: relative

}

/*edit page nav*/
.top_header {
background: none repeat scroll 0 0 #5B5B5B;
display: none;
float: right;
margin: 0 1% 40px;
padding: 30px 10px;
width: 60%;
height: 60px;
position: relative;
top: -370px;
left: -10%;
}
#p-cactions {
float: left;
display: none;

}

#p-cactions li {
float: none;
font-size: 22px;
list-style: outside none none;
margin: 0 35px 0 0;
text-align: left;
position: relative;
left: 10%;

}

#p-personal {
float: left;
display: none;
}

.top_header ul {
margin: 0;
padding: 0;
}

#p-cactions {
float: left;
}

#p-personal li {
float: none;
font-size: 22px;
list-style: outside none none;
margin: 0 15px 0 0;
}

#column-content #bodyContent {
color: #7b377b;
float: left;
font-size: 115%;
margin: 15px 0 15px 50px;
width: 94%;

}



#column-one h3 {
display: none;
}

#column-one ul {
margin: 0;
}

.mw-ui-vform-field {
width: 70%;
}

/*control font size*/

#column-one li {
font-size: 18px;
list-style: outside none none;
margin: 1px 0;
text-align: center;
}



/*control special page layout*/
.mw-ui-input {
width:80%;
}

#wpLoginAttempt {
width: 70%;
}
.mw-submit {
width:70%;
}

/*control search input text color and font*/
#searchInput {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
border: 4px solid #000000;
box-shadow: none;
position: relative;
top: -60px;
text-align: center;
left: 400%;
float: right;
color: #99D9EA;
padding: 8px;
width: 92px;
z-index: 3;

}

.rectangle-box {
background: none repeat scroll 0 0 #5B5B5B;
float: right;
display: block;
margin: 0 1% 40px;
position: relative;
width: 60%;
height: 130px;
left: 0%;
top: 35px;
}
.rectangle-box2 {
background: none repeat scroll 0 0 #5B5B5B;
float: right;
display: none;
margin: 0 1% 0 40px;
height: 400px;
width: 70%;
position: relative;
top: 0px;
left: -10%;

}
}

我使用的媒体查询似乎只能被 Chrome 和 Opera 识别。我试图让我的网站使用此媒体查询调整大小,但是当我将浏览器窗口更改为该大小时,查询不会生效。我该怎么做才能解决这个问题?我的代码有问题吗?是什么导致这种情况仅在某些浏览器中发生?

最佳答案

更改 viewport

<meta name="viewport" content="width=device-width">

关于css - 使用 Firefox 和 IE 时,Mediawiki 媒体查询不会对浏览器调整大小生效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30283801/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com