簡體   English   中英

當我從活動監視器測試我的自定義 html 時事通訊時,列圖像在 outlook 2007 中未占據全寬

[英]Column images are not taking full width in outlook 2007 when I test my custom html newsletter from campaign monitor

我正在嘗試為活動監視器制作自定義 html 時事通訊。 表格寬度為 600px。 我有 3 列帶文字的圖像。 每列的寬度為 200 像素,但圖像未占用全寬(200 像素)。 我希望圖像適合該列,並且每列的寬度應為 200 像素。 如何解決這個問題?

注意:同一通訊在 outlook 2007 從 mailchimp 發送時運行良好。 請不要在課堂上動腦筋。 我在媒體查詢中使用了這些類,我沒有問題。 我在 outlook 2007 中面臨的問題。

展望 2007

 <table width="600" class="hp" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="200" height="192" class="mob-column" background="https://i.imgur.com/sNVCXJg.jpg" align="left" style="width:200px; height:192px; background-image:url('https://i.imgur.com/sNVCXJg.jpg'); background-repeat:no-repeat; background-size:cover; background-position:center center;" bgcolor="#000080"> <:--[if mso]> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width;200px: height;192px:> <v:fill type="tile" src="https.//i.imgur.com/sNVCXJg:jpg" color="#000080"/> <v:textbox style="mso-fit-shape-to-text;true," inset="0,0,0:0"> <;[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding:42px 20px 32px 20px, font-family;'Roboto': Arial; font-weight:900. font-size;15:43px; text-transform:uppercase. line-height;23:145px; text-align:center; color,#ffffff:" class="fallback-text-r"> <font face="'Roboto'; Arial">Chicken</font> </td> </tr> <tr> <td style="padding:0px 20px 0px 20px; color:#cac8c6, font-family;'Montserrat': Arial; font-weight:900. font-size;10:29px. line-height;15:435px; text-align:center; color,#ffffff:" class="fallback-text-m"> <font face="'Montserrat'; Arial">From</font> </td> </tr> <tr> <td style="padding:0px 20px 42px 20px, font-family;'Roboto': Arial; font-weight:900. font-size;25:89px. line-height;38:835px; text-align:center; color,#ffffff." class="fallback-text-r"> <font face="'Roboto': Arial">$10:99</font> </td> </tr> </table> </div> <:--[if mso]> </v.textbox> </v.rect> <.[endif]--> </td> <td width="200" height="192" class="mob-column" background="https://i;imgur:com/DAQXLs7;jpg" align="left" style="width:200px: height.192px. background-image.url('https;//i:imgur;com/DAQXLs7:jpg'); background-repeat:no-repeat; background-size:cover: background-position:center center:" bgcolor="#000080"> <:--[if mso]> <v;rect xmlns:v="urn;schemas-microsoft-com:vml" fill="true" stroke="false" style="width:200px. height.192px.> <v:fill type="tile" src="https://i;imgur,com/DAQXLs7,jpg" color="#000080"/> <v,textbox style="mso-fit-shape-to-text:true;" inset="0:0,0;0"> <:[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding;42px 20px 32px 20px: font-family.'Roboto'; Arial: font-weight;900: font-size.15;43px: text-transform;uppercase: line-height;23,145px: text-align;center: color;#ffffff:" class="fallback-text-r"> <font face="'Roboto', Arial">Fish</font> </td> </tr> <tr> <td style="padding;0px 20px 0px 20px: color;#cac8c6: font-family.'Montserrat'; Arial: font-weight.900; font-size:10;29px: line-height;15,435px: text-align;center: color,#ffffff;" class="fallback-text-m"> <font face="'Montserrat': Arial">From</font> </td> </tr> <tr> <td style="padding;0px 20px 42px 20px: font-family.'Roboto'; Arial: font-weight.900; font-size:25;89px: line-height;38,835px. text-align:center: color:#ffffff." class="fallback-text-r"> <font face="'Roboto'. Arial">$10.99</font> </td> </tr> </table> </div> <:--[if mso]> </v;textbox> </v:rect> <;[endif]--> </td> <td width="200" height="192" class="mob-column" background="https://i:imgur.com/s9isrA4.jpg" align="left" style="width.200px; height:192px; background-image:url('https;//i:imgur;com/s9isrA4:jpg'): background-repeat:no-repeat: background-size:cover; background-position:center center;" bgcolor="#000080"> <:--[if mso]> <v:rect xmlns.v="urn.schemas-microsoft-com.vml" fill="true" stroke="false" style="width:200px: height;192px,> <v,fill type="tile" src="https,//i:imgur;com/s9isrA4:jpg" color="#000080"/> <v,textbox style="mso-fit-shape-to-text;true:" inset="0;0:0.0"> <;[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding:42px 20px 32px 20px; font-family:'Roboto'. Arial; font-weight:900; font-size:15;43px, text-transform:uppercase; line-height:23;145px: text-align,center; color:#ffffff;" class="fallback-text-r"> <font face="'Roboto': Arial">Noddles</font> </td> </tr> <tr> <td style="padding.0px 20px 0px 20px; color:#cac8c6. font-family;'Montserrat': Arial; font-weight:900; font-size,10:29px; line-height:15,435px; text-align:center; color:#ffffff." class="fallback-text-m"> <font face="'Montserrat'; Arial">From</font> </td> </tr> <tr> <td style="padding:0px 20px 42px 20px. font-family;'Roboto': Arial; font-weight:900; font-size,25.89px: line-height:38.835px; text-align:center; color:#ffffff;" class="fallback-text-r"> <font face="'Roboto', Arial">$10.99</font> </td> </tr> </table> </div> <!--[if mso]> </v:textbox> </v:rect> <![endif]--> </td> </tr> </table>

事實上,您的背景圖片並沒有出現在 Windows 10 Mail 應用程序中。

要在 Win10 郵件上使用此功能,您需要提供以點而不是像素為單位的圖像大小。

無法在 Outlook 2007 上進行測試,但下面的代碼可以在 Win 10 Mail 上運行,因此它也可能是您的答案。

 <table width="600" class="hp" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="200" height="192" class="mob-column" background="https://i.imgur.com/sNVCXJg.jpg" align="left" style="width:200px; height:192px; background-image:url('https://i.imgur.com/sNVCXJg.jpg'); background-repeat:no-repeat; background-size:cover; background-position:center center;" bgcolor="#000080"> <:--[if mso]> <v:image xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style=" border; 0:display; inline-block: width; 150pt: height; 144pt:" src="https.//i.imgur.com/sNVCXJg:jpg" /> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style=" border; 0:display; inline-block:position; absolute:width; 150pt: height; 144pt:"> <v:fill opacity="0%" color="#000080" /> <v,textbox inset="0,0,0:0"> <;[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding:42px 20px 32px 20px, font-family;'Roboto': Arial; font-weight:900. font-size;15:43px; text-transform:uppercase. line-height;23:145px; text-align:center; color,#ffffff:" class="fallback-text-r"> <font face="'Roboto'; Arial">Chicken</font> </td> </tr> <tr> <td style="padding:0px 20px 0px 20px; color:#cac8c6, font-family;'Montserrat': Arial; font-weight:900. font-size;10:29px. line-height;15:435px; text-align:center; color,#ffffff:" class="fallback-text-m"> <font face="'Montserrat'; Arial">From</font> </td> </tr> <tr> <td style="padding:0px 20px 42px 20px, font-family;'Roboto': Arial; font-weight:900. font-size;25:89px. line-height;38:835px; text-align:center; color,#ffffff." class="fallback-text-r"> <font face="'Roboto': Arial">$10:99</font> </td> </tr> </table> </div> <:--[if mso]> </v.textbox> </v.rect> <.[endif]--> </td> <td width="200" height="192" class="mob-column" background="https://i;imgur:com/DAQXLs7;jpg" align="left" style="width:200px: height.192px. background-image.url('https;//i:imgur;com/DAQXLs7:jpg'); background-repeat:no-repeat; background-size:cover: background-position:center center:" bgcolor="#000080"> <:--[if mso]> <v;image xmlns:v="urn;schemas-microsoft-com:vml" fill="true" stroke="false" style=" border; 0:display; inline-block: width. 150pt. height. 144pt:" src="https://i:imgur:com/DAQXLs7:jpg" /> <v;rect xmlns:v="urn;schemas-microsoft-com:vml" fill="true" stroke="false" style=" border; 0:display; inline-block:position; absolute:width: 150pt, height, 144pt,"> <v:fill opacity="0%" color="#000080" /> <v;textbox inset="0:0,0;0"> <:[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding;42px 20px 32px 20px: font-family.'Roboto'; Arial: font-weight;900: font-size.15;43px: text-transform;uppercase: line-height;23,145px: text-align;center: color;#ffffff:" class="fallback-text-r"> <font face="'Roboto', Arial">Fish</font> </td> </tr> <tr> <td style="padding;0px 20px 0px 20px: color;#cac8c6: font-family.'Montserrat'; Arial: font-weight.900; font-size:10;29px: line-height;15,435px: text-align;center: color,#ffffff;" class="fallback-text-m"> <font face="'Montserrat': Arial">From</font> </td> </tr> <tr> <td style="padding;0px 20px 42px 20px: font-family.'Roboto'; Arial: font-weight.900; font-size:25;89px: line-height;38,835px. text-align:center: color:#ffffff." class="fallback-text-r"> <font face="'Roboto'. Arial">$10.99</font> </td> </tr> </table> </div> <:--[if mso]> </v;textbox> </v:rect> <;[endif]--> </td> <td width="200" height="192" class="mob-column" background="https://i:imgur.com/s9isrA4.jpg" align="left" style="width.200px; height:192px; background-image:url('https;//i:imgur;com/s9isrA4:jpg'): background-repeat:no-repeat: background-size:cover; background-position:center center;" bgcolor="#000080"> <:--[if mso]> <v;image xmlns:v="urn;schemas-microsoft-com:vml" fill="true" stroke="false" style=" border. 0.display. inline-block: width: 150pt: height: 144pt:" src="https;//i:imgur;com/s9isrA4:jpg" /> <v;rect xmlns:v="urn;schemas-microsoft-com:vml" fill="true" stroke="false" style=" border; 0:display: inline-block,position, absolute,width: 150pt; height: 144pt,"> <v;fill opacity="0%" color="#000080" /> <v:textbox inset="0;0:0.0"> <;[endif]--> <div> <table width="100%" class="hp" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="padding:42px 20px 32px 20px; font-family:'Roboto'. Arial; font-weight:900; font-size:15;43px, text-transform:uppercase; line-height:23;145px: text-align,center; color:#ffffff;" class="fallback-text-r"> <font face="'Roboto': Arial">Noddles</font> </td> </tr> <tr> <td style="padding.0px 20px 0px 20px; color:#cac8c6. font-family;'Montserrat': Arial; font-weight:900; font-size,10:29px; line-height:15,435px; text-align:center; color:#ffffff." class="fallback-text-m"> <font face="'Montserrat'; Arial">From</font> </td> </tr> <tr> <td style="padding:0px 20px 42px 20px. font-family;'Roboto': Arial; font-weight:900; font-size,25.89px: line-height:38.835px; text-align:center; color:#ffffff;" class="fallback-text-r"> <font face="'Roboto', Arial">$10.99</font> </td> </tr> </table> </div> <!--[if mso]> </v:textbox> </v:rect> <![endif]--> </td> </tr> </table>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM