我需要在我的網站正文旁邊顯示2個廣告容器(右側),但只有在桌面/屏幕尺寸大於我的網站容器時才應顯示廣告寬度。本網站主要針對手機&我不需要在手機上展示廣告,因爲我們無法在手機屏幕中容納此廣告。HTML/CSS廣告位置修復
鑑於我下面的html代碼;
<div style="width:320px; height:500px; background-color:#C60; margin:0 auto;">Website</div>
<div id="ad-contextual" style="width:222px; height:150px; float:left; margin-right:20px; background-color:#39F;">Contextual Ads</div>
<div id="ad-sky" style="width:222px; height:600px; float:left; background-color:#996;">Skyscrapers Ads</div>
感謝