Responsive Email Design 響應式郵件設計

Responsive Email Design 響應式郵件設計
現在人用手機來收信的機會愈來愈高,所以為了適應行動裝置各種大小,郵件設計師必須添加判斷式於郵件內容中。

@media only screen and (max-width: 600px){ ... }

判斷寬度小於600px時,套用這段CSS屬性

Here are sample snippets of CSS that you can use to target specific mobile devices:

/* 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 */
}

Styles內的屬性請自行添加。

與大家分享...
Responsive Email Design 響應式郵件設計
Facebook
0Responsive Email Design 響應式郵件設計
Google+
0Responsive Email Design 響應式郵件設計
Pinterest
0Responsive Email Design 響應式郵件設計
email
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *