2013-04-14 53 views
0

不會調整下面是該網站: http://www.morpheuscommerce.com/背景網站上的其他移動設備

現在,這是當我在iPad上瀏覽該網站會發生什麼: http://i.imgur.com/I4cQ9Yb.jpg

類似的事情發生在iphone。在桌面上它看起來很好,但是當您調整瀏覽器的大小並將滾動條移動到右側時,背景被破壞了!

我試了很多事情,試圖解決這個問題,但林不知道什麼原因導致問題。

+0

我認爲你的jQuery Slider有一些樣式問題。嘗試將樣式應用於圖像和容器:{width:100%; margin-left:auto; margin-right:auto;} –

+0

許多地方都有固定的寬度。你有適合你的窗口。例如試試這個#content_container,#content_width {max-width:100%; }您的第一篇文章「SAY HELLO TO MORPHEUS」將適用於每個屏幕。並且對所有圖像始終使用寬度:100%,因此它們將根據屏幕調整大小。 – crazyrohila

回答

0

您的網站沒有響應式佈局。

可以@media

/* Smartphones (portrait and landscape) ----------- */ 
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) { 
/* Styles */ 
} 

/* Smartphones (landscape) ----------- */ 
@media only screen 
and (min-width : 321px) { 
/* Styles */ 
} 

/* Smartphones (portrait) ----------- */ 
@media only screen 
and (max-width : 320px) { 
/* Styles */ 
} 

/* iPads (portrait and landscape) ----------- */ 
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) { 
/* Styles */ 
} 

/* iPads (landscape) ----------- */ 
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) { 
/* Styles */ 
} 

/* iPads (portrait) ----------- */ 
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) { 
/* Styles */ 
} 

/* Desktops and laptops ----------- */ 
@media only screen 
and (min-width : 1224px) { 
/* Styles */ 
} 

/* Large screens ----------- */ 
@media only screen 
and (min-width : 1824px) { 
/* Styles */ 
} 

/* iPhone 4 ----------- */ 
@media 
only screen and (-webkit-min-device-pixel-ratio : 1.5), 
only screen and (min-device-pixel-ratio : 1.5) { 
/* Styles */ 
} 

搜索更多關於響應式佈局用CSS改變這一點。