我想给我的锚标签提供高度和宽度,这样我就可以在桌面或笔记本电脑上的outlook应用程序中看到高度和宽度


<a href=""><button>Confirm your info</button></a>

我试过显示:块或显示;内联块。但它不适用于电子邮件模板。请提供内联css。

我用过

<a style="width: 200px;height: 43px;display:inline-block;background-color: #245fa2;color: white;">
<button style="width: 200px;height: 43px;margin-bottom: 10px;background-color: #245fa2;color: white;font-size: 16px; border-color: #99cc33;border-radius: 5px;font-family: sans-serif,Arial,Helvetica;"></button>
</a>

电子邮件样式很麻烦。

为了支持电子邮件,您必须恢复到老式的HTML+表格布局。我不认为<按钮>将起作用。

当我想要一个在电子邮件中看起来不错的方形块按钮时,我会用<a>文本居中对齐。。。

<table><tr><td><a>some text</a></td></tr></table>

然后设置td和内联的样式。

最新更新