Standard way to detect mobile mail client?

前端 未结 4 1492
旧巷少年郎
旧巷少年郎 2021-02-01 23:17

This question is similar to \"Standard way to detect mobile browsers in a web application based on the http request\" except for mail clients. For instance, if an email message

4条回答
  •  半阙折子戏
    2021-02-02 00:03

    If you want CSS that specifically targets mobile browsers you can try the following code.

    
    
    

    HEAD tags are often stripped out by email clients, so inline styles are preferred. But if you link to CSS inside the BODY tags it should work.

提交回复
热议问题