我試圖讓我的bigcartel頁面顯示Bigcartel移動僅
<div style="margin-top: 0px; img align: middle">
<a href="/products"><img width="420" height="42" style="vertical-align:middle;" src="https://i.imgsafe.org/52c5068376.png" alt="PAF ENTRY"></a>
</div>
在移動設備上
只是試圖顯示瀏覽器的代碼只 這裏的精確副本是頁面 http://pafclub.bigcartel.com/entry
這是我到目前爲止有:
<div class="mobileHide">
<div style="margin-top: 0px; img align: middle">
<a href="/products"><img width="420" height="42" style="vertical- align:middle;" src="https://i.imgsafe.org/52c5068376.png" alt="PAF ENTRY"></a> </div>
<style type="text/css">
.mobileHide { display: inline;}
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){ .mobileHide { display: none;}}
</style>
<div class="mobileShow">
<div style="margin-top: 120px; margin-bottom: 10px; text-align: center;">
<a href="/products"><img width="420" height="42" style="vertical-align:middle;" src="https://i.imgsafe.org/52c5068376.png" alt="PAF ENTRY"></a>
</div>
<style type="text/css">
.mobileShow { display: none;}
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){ .mobileShow { display: inline;}}
</style>
它顯示的圖像的一個版本,但是當我檢查移動設備上的療法e根本就沒有圖像。
我在哪裏把上半部分的代碼,CSS?此外,這使我的形象正確的中間,我真的很想這麼感謝。 – Spooked