需要帮助,使我的HTML电子邮件响应能力。混合流体设计I i; m使用ISN不起作用

发布于 2025-02-03 18:48:41 字数 4480 浏览 3 评论 0原文

我使用混合流体设计有一个简单的2列布局。我希望这些列可以在移动屏幕上互相堆叠。我有一个两列班级表,可以在我的列级表周围包裹。在我的列级表上,我有样式=“ display:inline-block;垂直隔离:top; width:100%;最大宽度:300px; border-spacing:0; backing cropppent-color:#d93644;“。”该表将我的IMG标签保存在这一列上。我的另一列包含写作内容。

仅此部分就应该是由于内联窗口,宽度和最大宽度样式的响应能力,但是它不会在较小的屏幕上彼此堆叠,而我一生都无法弄清楚为什么和它可能是什么如此简单。确实需要帮助。

<!-- START 1ST TWO COLUMN -->
         <tr>
            <td>
               <table width="100%" style="border-spacing: 0;" role="presentation">
                  <tr>
                     <td class="two-columns" style="padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; font-size: 0; text-align: center;">
                        <!--[if (gte mso 9)|(IE)]>
                           <table width="100%" style="border-spacing:0;" role="presentation">
                           <tr>
                           <td width="300" valign="top" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;">
                        <![endif]-->

                        <table class="column" role="presentation" style="display: inline-block; vertical-align: top; width: 100%; max-width: 300px; border-spacing:0; background-color: #D93644;">
                           <tr>
                              <td class="padding" style="background-color: #D93644; padding-top: 0; padding-right: 0px; padding-bottom: 0; padding-left: 0px; font-size: 0;">
                                 <table class="content" role="presentation" style="border-spacing: 0; text-align: left;">
                                    <tr>
                                       <td style="background-color: #D93644;">
                                          <img class="two-col-img" width="280" style="max-width: 280px;" height="215.7" src="http://ibb.co.com/images/c81e0cd1b8b486f30644ee03f4a1988e.png" alt="airplane" border="0" title="airplane with red background">
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                        </table>

                        <!--[if (gte mso 9)|(IE)]>
                           </td><td width="300" valign="middle" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;">
                           <![endif]-->

                        <table class="column" role="presentation" style="display: inline-block; vertical-align: top; width: 100%; border-spacing:0; max-width: 300px;" >
                           <tr>
                              <td class="padding" style="padding-top: 0; padding-right: 15px; padding-bottom: 0; padding-left: 15px; font-size: 0;">
                                 <table class="content" role="presentation" style="border-spacing: 0; text-align: left;">
                                    <tr>
                                       <td>
                                          <p style="font-size: 20px; font-weight: bold; color: #808080;">We Can Give
                                             Your Career Wings</p>
                                          <p style="font-size: 12px; color: #808080;">Ascent Aviation Services hold one of only two Class IV CFR Part 145 license that allows us to specialize in the operation of every aspect of aircraft maintenance (Narrow and wide body, small to large, regional to long-haul).</p>
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                        </table>

                        <!--[if (gte mso 9)|(IE)]>
                           </td>
                           </tr>
                           </table>
                        <![endif]-->
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
         <!-- END 1ST TWO COLUMN -->

I have a simple 2 column layouts using a hybrid fluid design. I want the columns to stack on top of each other on mobile screens. I have a two-columns class table that wraps around my column class tables. On my column class tables i have style="display: inline-block; vertical-align: top; width: 100%; max-width: 300px; border-spacing:0; background-color: #D93644;". This table holds my img tag on this one column. My other column holds the writing content.

This section alone should be should be responsive already due to the inline-block, width and max width styling but it doesn't stack on top of each other on smaller screens and I cannot for the life of me figure out why and its probably something so so simple. Really need help with this.
Non-responsive non fluid iphone x dimensions

<!-- START 1ST TWO COLUMN -->
         <tr>
            <td>
               <table width="100%" style="border-spacing: 0;" role="presentation">
                  <tr>
                     <td class="two-columns" style="padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; font-size: 0; text-align: center;">
                        <!--[if (gte mso 9)|(IE)]>
                           <table width="100%" style="border-spacing:0;" role="presentation">
                           <tr>
                           <td width="300" valign="top" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;">
                        <![endif]-->

                        <table class="column" role="presentation" style="display: inline-block; vertical-align: top; width: 100%; max-width: 300px; border-spacing:0; background-color: #D93644;">
                           <tr>
                              <td class="padding" style="background-color: #D93644; padding-top: 0; padding-right: 0px; padding-bottom: 0; padding-left: 0px; font-size: 0;">
                                 <table class="content" role="presentation" style="border-spacing: 0; text-align: left;">
                                    <tr>
                                       <td style="background-color: #D93644;">
                                          <img class="two-col-img" width="280" style="max-width: 280px;" height="215.7" src="http://ibb.co.com/images/c81e0cd1b8b486f30644ee03f4a1988e.png" alt="airplane" border="0" title="airplane with red background">
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                        </table>

                        <!--[if (gte mso 9)|(IE)]>
                           </td><td width="300" valign="middle" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;">
                           <![endif]-->

                        <table class="column" role="presentation" style="display: inline-block; vertical-align: top; width: 100%; border-spacing:0; max-width: 300px;" >
                           <tr>
                              <td class="padding" style="padding-top: 0; padding-right: 15px; padding-bottom: 0; padding-left: 15px; font-size: 0;">
                                 <table class="content" role="presentation" style="border-spacing: 0; text-align: left;">
                                    <tr>
                                       <td>
                                          <p style="font-size: 20px; font-weight: bold; color: #808080;">We Can Give
                                             Your Career Wings</p>
                                          <p style="font-size: 12px; color: #808080;">Ascent Aviation Services hold one of only two Class IV CFR Part 145 license that allows us to specialize in the operation of every aspect of aircraft maintenance (Narrow and wide body, small to large, regional to long-haul).</p>
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                        </table>

                        <!--[if (gte mso 9)|(IE)]>
                           </td>
                           </tr>
                           </table>
                        <![endif]-->
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
         <!-- END 1ST TWO COLUMN -->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文