似乎我已经正确地完成了所有操作,但是那根本行不通。检查元素时也不会显示。要检查是否为媒体查询,请尝试设置其他bg颜色。
@media screen and (max-width:1050px) {
#hmbn {
width:400px !important;
background-color:red !important;
}
}
div放置在引导程序行内
给你
@media screen and (max-width:1050px) {
#hmbn {
width:400px;
background-color:red;
}
.im1fill {
float:none;
}
}
说明:#hmbn
未收到I高度,这是由于a
未显示为块引起的,这是由于div在锚点内部浮动引起的。取下浮子,然后固定好一切。您也可以删除!important
标签。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句