追蹤

手機版也想要背景

此段語法貼在 『自訂-商店樣式』 裡

 

/* General Smartphones (portrait and landscape) */

@media only screen and (max-width: 768px),

/* iPhone 6 in portrait */

only screen and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait),

/* iPhone 6 Plus in portrait */

only screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : portrait) {

body {

 

background-image:url(背景圖連結);

 

 

}

 

}

這篇文章是否有幫助?
0 人中有 0 人覺得有幫助
還有其他問題?提交請求