大佬教程收集整理的这篇文章主要介绍了在android nexus 5(4.4.2)本机邮件应用程序上响应html电子邮件,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <Meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <Meta name="viewport" content="initial-scale=1.0;width:device-width"> <!-- So that mobile webkit will display zoomed in --> <title>Email template</title> <!-- disable auto telephone linking in iOS --> <Meta name="format-detection" content="telephone=no"> <style type="text/css"> @media screen and (max-width:640pX) { table[class="container"] { width: 100%!important; } td[class="cell"] { BACkground-color: #cc3333; width: 100%!important; display: block!important; } } </style> </head> <body> <table width="640" align="center" celLPADding="0" cellspacing="0" class="container"> <tr> <td class="cell">Hello world</td> <td class="cell">Hello world</td> </tr> </table> </body> </html>
编辑1/14因此使用表作为块元素可以正常工作.由于表是浮动的(使用对齐),因此在宽度小于640px的情况下进行包装.现在唯一的问题是,当两个表换行时,由于它们的宽度设置为320px,文本在原始分辨率超过320px但小于640px的设备上不会回流到100%(比如iPhone在横向模式下为480px )而是包裹在320px(在右边留下大约160px的空白区域).我知道我可以使用媒体@L_675_3@更改宽度,但遗憾的是它不适用于Gmail应用程序(grrh).有什么想法/建议?简单的桌面结构 –
<table align="center" style="width: 640px;max-width:100%" celLPADding="0" cellspacing="0"> <tr> <td> <table align="left" style="width:49%;" border="1"> <tr> <td style="max-width: 100%">long text which should take about 480px </td> </tr> </table> <table style="width:49%;max-width: 100%" align="left"> <tr> <td style="width:100%;">long text which should take about 480px </td> </tr> </table> </td> </tr> </table>
以上是大佬教程为你收集整理的在android nexus 5(4.4.2)本机邮件应用程序上响应html电子邮件全部内容,希望文章能够帮你解决在android nexus 5(4.4.2)本机邮件应用程序上响应html电子邮件所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。