简体   繁体   English

response.css中媒体的新属性无效

[英]new attributes of media in responsive.css no effect

Hello I hope you can answer my question, 您好,希望您能回答我的问题,

My problem is that my responsive.css isn't responding, I edited the media queries, I added new attributes for it but it didn't show when I inspect element using firebug, what's wrong with this ? 我的问题是我的响应.css没有响应,我编辑了媒体查询,为其添加了新属性,但是当我使用firebug检查元素时却没有显示,这是怎么回事?

thanks in advance ! 提前致谢 !

Make sure that your code have formatted like below. 确保您的代码格式如下。

 @media (max-width:320px) 
 { 
 #promo{float:left;}
 nav{width:90%;} 
 nav ul li a{width:83%;} 
 #banner{margin:auto; float:none; position:relative; margin-top:78%; height:229px; width:100%; float:left !important;} 
 .footer-links {margin-bottom:20px; padding-left:7%; text-align:left!important; width:100%;}
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM