gpt4 book ai didi

HTML 电子邮件,导航显示在移动设备的底部

转载 作者:行者123 更新时间:2023-11-28 04:28:41 26 4
gpt4 key购买 nike

我正在学习编写响应式电子邮件模板。目前我有:https://jsfiddle.net/q12yg2z6/

<tr class="main_nav">
<td id="mobile_nav" width="600">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 1</a>
</td>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 2</a>
</td>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 3</a>
</td>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 4</a>
</td>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 5</a>
</td>
<td align="center" style="padding: 15px 20px; font-family: arial,sans-serif; font-size: 14px; font-weight: bold;">
<a href="#" style="text-decoration: none; color: #999999;">Nav 6</a>
</td>
</tr>
</table>
</td>
</tr>

如您所见,在移动设备上,桌面上的顶部导航将堆叠在底部。但现在它出现在主要 cta 和接下来的两列部分之间。我如何让它出现在页脚。我尝试使用我的代码四处移动,但找不到正确的方法。

最佳答案

使用这个:

@media screen and(max-width:500px){
tr[class="main_nav"] {
display: table-footer-group;
position:absolute;
top:1000px;
bottom:0px;
}}

关于HTML 电子邮件,导航显示在移动设备的底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41844298/

26 4 0
文章推荐: javascript - 如何更新在 PrimeFaces commandButton 组件的 oncomplete 事件中使用的 javascript 代码
文章推荐: html - 导航菜单不会与 Logo 图像垂直对齐
文章推荐: javascript - IE。通过属性 "disabled"