我不知道,为什么不这样媒体查询:为什么没有这个媒体查询否决主css
@media only screen and (max-width: 1200px){
.hero-text-box {
width: 100%;
padding: 0 2%;
}
}
不否决的标准样式的CSS女巫看起来像这样
.hero-text-box {
position: absolute;
width: 1140px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
当我看到谷歌铬的开发工具,当屏幕尺寸低于1200px时,填充工作,但不是100%的宽度。 IT正在交叉。
如果您添加!对物业来说很重要吗? –
你能在小提琴中展示吗? –
检查问题的答案我问几个月前:http://stackoverflow.com/questions/28580933/overwrite-jquery-css-values-with-css-mediaqueries –