特效描述:酒店客房 预订邮件ui。一款通用的酒店预订邮件信息,客户预订发送邮件信息特效,邮件内容ui页面特效。table写的邮件内容布局代码。
代码结构
1. HTML代码
<!DOCTYPE html> <html lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="utf8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="x-apple-disable-message-reformatting"> <title></title> <!--[if mso]> <xml> <o:OfficeDocumentSettings> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <style> table {border-collapse: collapse;} td,th,div,p,a,h1,h2,h3,h4,h5,h6 {font-family: "Segoe UI", sans-serif; mso-line-height-rule: exactly;} </style> <![endif]--> <style> @media screen { img { max-width: 100%; } td, th { box-sizing: border-box; } u~div .wrapper { min-width: 100vw; } a[x-apple-data-detectors] { color: inherit; text-decoration: none; } .all-font-roboto { font-family: Roboto, -apple-system, "Segoe UI", sans-serif !important; } .all-font-sans { font-family: -apple-system, "Segoe UI", sans-serif !important; } } @media (max-width: 600px) { .sm-inline-block { display: inline-block !important; } .sm-hidden { display: none !important; } .sm-leading-32 { line-height: 32px !important; } .sm-p-20 { padding: 20px !important; } .sm-py-12 { padding-top: 12px !important; padding-bottom: 12px !important; } .sm-text-center { text-align: center !important; } .sm-text-xs { font-size: 12px !important; } .sm-text-lg { font-size: 18px !important; } .sm-w-1-4 { width: 25% !important; } .sm-w-3-4 { width: 75% !important; } .sm-w-full { width: 100% !important; } } </style> <style> @media (max-width: 600px) { .sm-dui17-b-t { border: solid #4299e1; border-width: 4px 0 0; } } </style> </head> <body style="box-sizing: border-box; margin: 0; padding: 0; width: 100%; word-break: break-word; -webkit-font-smoothing: antialiased; background-color: #f5dbce;"> <table class="wrapper all-font-sans" width="100%" height="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td align="center" style="padding: 24px;" width="100%"> <table class="sm-w-full" width="600" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td class="sm-hidden" style="padding-top: 40px; padding-bottom: 40px;" width="160"> <img src="img/photo.jpg" alt="Double room" style="border: 0; line-height: 100%; vertical-align: middle; border-top-left-radius: 4px; border-bottom-left-radius: 4px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);" width="160"> </td> <td align="left" class="sm-p-20 sm-dui17-b-t" style="border-radius: 2px; padding: 40px; position: relative; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05); vertical-align: top; z-index: 50;" bgcolor="#ffffff" valign="top"> <table width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td width="80%"> <h1 class="sm-text-lg all-font-roboto" style="font-weight: 700; line-height: 100%; margin: 0; margin-bottom: 4px; font-size: 24px;">客户收据</h1> <p class="sm-text-xs" style="margin: 0; color: #a0aec0; font-size: 14px;">您的预订现已确认</p> </td> <td style="text-align: right;" width="20%" align="right"> <a href="https://www.51qianduan.com/" target="_blank" style="text-decoration: none;"> <img src="img/872220.png" alt="Download PDF" style="border: 0; line-height: 100%; vertical-align: middle; font-size: 12px;" width="24"> </a> </td> </tr> </table> <div style="line-height: 32px;">‌</div> <table class="sm-leading-32" style="line-height: 28px; font-size: 14px;" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td class="sm-inline-block" style="color: #718096;" width="50%">客人</td> <td class="sm-inline-block" style="font-weight: 600; text-align: right;" width="50%" align="right">Jamie Doe</td> </tr> <tr> <td class="sm-inline-block" style="color: #718096;" width="50%">天数</td> <td class="sm-inline-block" style="font-weight: 600; text-align: right;" width="50%" align="right">6</td> </tr> <tr> <td class="sm-w-1-4 sm-inline-block" style="color: #718096;" width="50%">地址</td> <td class="sm-w-3-4 sm-inline-block" style="font-weight: 600; text-align: right;" width="50%" align="right">公园大道45号303室</td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td style="padding-top: 24px; padding-bottom: 24px;"> <div style="background-color: #edf2f7; height: 2px; line-height: 2px;">‌</div> </td> </tr> </table> <table style="font-size: 14px;" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td class="sm-w-full sm-inline-block sm-text-center" width="40%"> <p class="all-font-roboto" style="margin: 0; margin-bottom: 4px; color: #a0aec0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;">入住时间</p> <p class="all-font-roboto" style="font-weight: 600; margin: 0; color: #000000;">2018年11月29日</p> </td> <td class="sm-w-full sm-inline-block sm-py-12" style="font-family: Menlo, Consolas, monospace; font-weight: 600; text-align: center; color: #cbd5e0; font-size: 18px; letter-spacing: -1px;" width="20%" align="center">>>></td> <td class="sm-w-full sm-inline-block sm-text-center" style="text-align: right;" width="40%" align="right"> <p class="all-font-roboto" style="margin: 0; margin-bottom: 4px; color: #a0aec0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;">离开时间</p> <p class="all-font-roboto" style="font-weight: 600; margin: 0; color: #000000;">2018年12月4日</p> </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td style="padding-top: 24px; padding-bottom: 24px;"> <div style="background-color: #edf2f7; height: 2px; line-height: 2px;">‌</div> </td> </tr> </table> <table style="line-height: 28px; font-size: 14px;" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td style="color: #718096;" width="50%">每晚价格</td> <td style="font-weight: 600; text-align: right;" width="50%" align="right">$144.99</td> </tr> <tr> <td style="color: #718096;" width="50%">服务费</td> <td style="font-weight: 600; text-align: right;" width="50%" align="right">$19.99</td> </tr> <tr> <td style="font-weight: 600; padding-top: 32px; color: #000000; font-size: 20px;" width="50%">总计</td> <td style="font-weight: 600; padding-top: 32px; text-align: right; color: #68d391; font-size: 20px;" width="50%" align="right">$889.93</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>