自適應(yīng)沒有作用 為什么呢
@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
舉報(bào)
2015-12-04
妹子,你定義的是.st-panel h2{}和.st-panel h2{},并沒有寫.st-panel p。。。。。。雖然年代久遠(yuǎn),我還是要忍不住說
2015-08-22
代碼沒有問題,應(yīng)該是你窗口沒有縮小到520px。你可以這么做,先把開發(fā)人員F12按出來,然后在縮小瀏覽器,會(huì)有提示你縮小到了多大尺寸。然后在看變化!