【问题标题】:outlook media@ problems outlook not responsive展望媒体@问题展望没有回应
【发布时间】:2022-01-17 20:58:14
【问题描述】:

我们正在尝试修改电子邮件以使其在 Outlook 中工作,而 media@ 似乎不起作用。我想不通,

这似乎不起作用

这里是我使用 css 用于 Outlook 规范的基本模型,但它似乎不起作用

<!--[if mso]>
    <style>
        .example-class {
            /* Outlook-specific CSS goes here. */
        }
    </style>
<![endif]-->

我尝试了简单的测试,首先用漂亮的红色更改背景颜色 但它似乎并没有真正做些什么。我真的不知道我能做什么

<!--[if mso]>

    <style>
        .table {
            background-color : red !important;
        }

        .body { 
            background-color : red !important;
        }


    </style>

<![endif]-->



  </head>

  <body
    class="clean-body"
    style="
      margin: 0 auto;
      padding: 0 auto ;
      -webkit-text-size-adjust: 100%;
      color-scheme: light only;">
    <!--[if IE]><div class="ie-container"><![endif]-->
    <!--[if mso]><div class="mso-container"><![endif]-->
    <table
       background="https://uploads-ssl.webflow.com/612d92faee8b9d13af4cd235/61bdeff1d3a394e5d362a8d2_signaturebackground.png" width="600" height="auto"  
      style="
        max-width: 600px;
        border-collapse: collapse;
        table-layout: fixed;
        border-spacing: 0;
        mso-table-lspace: 0pt;
        mso-table-rspace: 0pt;
        vertical-align: top;
        min-width: 320px;
        margin: 0 auto;
        background-image: url('https://uploads-ssl.webflow.com/612d92faee8b9d13af4cd235/61bdeff1d3a394e5d362a8d2_signaturebackground.png'); width:600px; display: block;
        background-color : rgb(33, 34, 34);
        color-scheme: light only;
        width: 100%;
        color: #ffffff;
       font-family: 'Roboto', sans-serif;
       top : -50px;
            
      "
      cellpadding="0"
      cellspacing="0"
           
    >
      <tbody>
        <tr>
          <td style="min-width: 180px; width: 210px; padding-bottom: 37px;">
            <table style="margin: 0; padding: 0">
              <tbody>
                <tr>
             
                  <td
                    style="
                      padding-left: 42px;
                      padding-bottom: 1px;
                      min-width: 83px;
                      padding-top: 40px;
                      padding-right: 0px;
                    "
                  >
                    <table>
                      <tbody>
                        <tr>
                          <td style="min-width: 180px">
                            <div
                              style="
                                font-size: 15px;
                                font-weight: 800;
                                line-height: 1;
                                color:rgb(126, 122, 122);filter: brightness(100);
                                     
                    
                              "
                            >
                              Inès AZUELOS
                            </div>
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <div
                              style="
                                font-size: 13px;
                                font-weight: 600;
                                padding-top: 5px;
                                padding-left: 1px;
                                color: #3399ff;"
                            >
                              Direction - Assistante
                            </div>
                          </td>
                        </tr>
                        <tr>
                          <td style="
                          padding-top: 16px;
                          padding-left: 2px;
                          color:rgb(126, 122, 122);filter: brightness(100);
                          font-size: 13px;
                          font-weight: 600;"
                          >
                            EICIAM
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td
                    style="
                      padding-left: 41px;
                      padding-bottom: 2px;
                      padding-right: 0px;
                      padding-top: 15px;
                      min-width: 83px;
                    "
                  >
                    <table>
                      <tbody>
                        <tr>
                          <td alt="logo facebook" title="logofacebook" style="padding: 3px; width : 20px; height: 20px;">
                           <a href=""> <img src="" style="width: 20px; height: 20px; display: block;border :0;"/> </a>
                          </td>
                          <td alt="logo linkedin" title="logolinkedin" style="padding: 3px; width: 20px; height: 20px;">
                           <a href=""> <img style="width: 20px; height: 20px; display: block; border :0;"/> </a>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
              </tbody>
            </table>
          </td>
          <td>
            <table>
              <tbody>
                <tr>


                  <!-- --------------------- -->
                  <td style="padding: 33px 0 0 0; width: 226px; margin-left: 5px ">
                    <table>
                      <tbody>
                        <tr>
                          <td style="border-left: 1px solid #ffffff67; padding: 7px 0 0 19px;">
                            <table
                              style="
                                font-size: 11px;
                                color: #212222;
                                letter-spacing: 0.7px;
                              "
                            >
                              <tbody>
                                <tr>
                                  <td style="min-width: 170px">
                                    <table>
                                      <tbody>
                                        <tr>
                                          <td alt="phone" title="phone" style="min-width: 19px; padding-top: 2px; width: 20px; height: 20px;"> 
                                           <img src="" style="width: 20px; height: 20px; display: block; border : 0;" />
                                          </td>
                                          <td href=""style="color:rgb(126, 122, 122);filter: brightness(100%); padding-top: 5px; padding-left: 10px; font-size: 12px;"><a href=""> </a></td>
                                        </tr>
                                        <tr>
                                          <td alt="mail" title="mail"  style="padding-top: 13px; width: 20px; height : 20px;">
                                            <img src="" style="width: 20px; height: 20px; display: block; border : 0;"  />
                                          </td>
                                          <td style="padding-top: 16px; padding-left: 10px; font-size: 12px;">
                                           <a href="" style="color:rgb(126, 122, 122);filter: brightness(100);" > </a>
                                          </td>
                                        </tr>
                                        <tr>
                                          <td alt="web" title="web" style="padding-top: 12px; width: 20px; height: 20px;">
                                             <img src="" style="width: 20px; height: 20px; display: block; border: 0;" />
                                          </td>
                                          <td style="padding-top: 16px; padding-left: 10px;font-size: 12px;">
                                           <a href="" style="color:rgb(126, 122, 122);filter: brightness(100);"> eiciam.fr </a>
                                          </td>
                                        </tr>
                                     
                                          <tr>
                                          <td alt="print" title="print" style="padding-top: 15px;width: 20px; height: 20px; display:inline; border:0;">
                                          <img style="width: 20px; height: 20px; display: block; border :0;"  onerror="this.src=';"/> 
                                              </td>
                                               <td style="padding-top: 16px; padding-left: 10px">
                                           <a  style="color:rgb(126, 122, 122);filter: brightness(100); font-size: 9px" style="color: white;"> N'imprimez que si nécessaire </br> Pensez à l'environnement</a>
                                               </td>
                                          </tr>
                                      </tbody>
                                    </table>
                                  </td>
                                </tr>
                              </tbody>
                            </table>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                  <td alt="" title="" style="min-width: 50px; width: 100px; height: 100px; border:0;">
                    <img src="" style="min-height: 50px; min-width: 50px; width: 100px; height: auto; display: block; border: 0;margin-top: 50px;"/>
                  </td>
                  <!-- ------------------------------ -->
                </tr>
              </tbody>
            </table>
          </td>
          
        </tr>
      </tbody>
    </table>
    <!--[if mso]></div><![endif]-->
    <!--[if IE]></div><![endif]-->
  </body>

【问题讨论】:

标签: html css outlook word


【解决方案1】:

不支持媒体元素。您可以在 Word HTML and CSS Rendering Capabilities in Outlook 文章中了解支持和不支持的 HTML 元素、属性和级联样式表属性。

事实上,Outlook 使用 Word 作为邮件正文的编辑器和呈现引擎。

【讨论】:

    猜你喜欢
    • 2016-09-07
    • 2014-07-09
    • 2016-11-13
    • 2017-12-24
    • 2015-12-21
    • 1970-01-01
    • 1970-01-01
    • 2023-04-05
    相关资源
    最近更新 更多