0
你好,我希望你能回答我的問題,新的屬性沒有影響
我的問題是,我responsive.css沒有響應,我編輯了媒體的質疑,我添加了新的屬性但它沒有顯示,當我使用螢火蟲檢查元素時,這有什麼問題?
在此先感謝!
你好,我希望你能回答我的問題,新的屬性沒有影響
我的問題是,我responsive.css沒有響應,我編輯了媒體的質疑,我添加了新的屬性但它沒有顯示,當我使用螢火蟲檢查元素時,這有什麼問題?
在此先感謝!
確保您的代碼格式如下。
@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%;}
}
我這樣做的格式相同,但是當我使用粘貼媒體中的所有屬性來查看它的外觀時,評論框只限制了幾個字符,這就是爲什麼我壓縮它,但是謝謝你的方式:) – 2014-10-07 01:45:17
顯示您的媒體查詢。 – Fergoso 2014-10-03 03:35:41
@media(max-width:320px) {#promo { \t float:left; \t} \t NAV {寬度:90%;} \t NAV UL立一個{寬度:83%;}} 這是原始媒體最大寬度320 ,, 現在我增加了新的3屬性,, \t #banner {margin:auto; \t \t float:none; \t \t position:relative; \t \t margin-top:78%; height:229px; 寬度:100%; float:left!important;} .footer-links {margin-bottom:20px; \t填充左:7%; \t text-align:left!important; \t寬度:100%; \t} \t這是現在的媒體320的最終CSS,但是當我檢查使用螢火蟲,這3個屬性沒有顯示,爲什麼? – 2014-10-03 04:02:08