要自訂手機版背景,請將下列提供的語法,貼在『版面>自訂CSS商店樣式』


 

/* 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(背景圖連結);

 

 

}

 

}


---------------------------------------------------------   以下是改背景顏色語法


/* 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-color: rgb(251, 245, 210);

 

 

}

 

}