自適應沒有作用 為什么呢
@media ?screen and (max-width:520px){
? ?.st-panel h2{
? ? ? ?font-size: 30px;
? ?}
? .st-panel h2{
? width: 90%;
? left:10%;
? margin-top: 0;
? }
? ?.st-container > a{
? ? ? ?font-size: 13px;
? ?}
??
}
@media ?screen and (max-width:520px){
? ?.st-panel h2{
? ? ? ?font-size: 30px;
? ?}
? .st-panel h2{
? width: 90%;
? left:10%;
? margin-top: 0;
? }
? ?.st-container > a{
? ? ? ?font-size: 13px;
? ?}
??
}
2015-08-11
舉報
2015-12-04
妹子,你定義的是.st-panel h2{}和.st-panel h2{},并沒有寫.st-panel p。。。。。。雖然年代久遠,我還是要忍不住說
2015-08-22
代碼沒有問題,應該是你窗口沒有縮小到520px。你可以這么做,先把開發人員F12按出來,然后在縮小瀏覽器,會有提示你縮小到了多大尺寸。然后在看變化!