0
對不起,您可能會這樣做,但如果您有其他方式,請成爲我的客人。使用@media更改寬度(最小寬度:XXXXpx)自適應廣告
.top-widget {
width: 75.5%; <-------------- This is the correct width that i want to have.
padding: 0 3px 0 0;
border: none;
background: none;
}
但是,當我達到某個像素,我想改變寬度,並保持800像素以下的方式。
@meda (min-width:800px) { .top.widget { width: 55.%; } } <-- This gives everything 55% (Also abow 800px)
@media (min-width:800px) { .adslot_1 { width: 320px; height: 100px; } }
@media (min-width:1024px) { .adslot_1 { width: 728px; height: 90px; } }
@media (min-width:1300px) { .adslot_1 { width: 728px; height: 90px; } }
@media (min-width:1700px) { .adslot_1 { width: 728px; height: 90px; } }
這使廣告在平板電腦上看起來也很棒。
'@ meda' ='@ media' ...解決您的錯字或複製/粘貼*完全*您正在嘗試使用的代碼。 – esqew 2015-02-08 21:32:23
請說明你的問題更多 – NMindz 2015-02-08 21:36:52