# 如何更改电子邮件模板的CTA按钮样式

**URL:** <https://meta.discourse.org/t/how-to-change-the-styles-of-cta-buttons-of-email-templates/263108>\
**Category:** Support\
**Created:** [2023年四月27日 18:19 UTC](https://meta.discourse.org/t/how-to-change-the-styles-of-cta-buttons-of-email-templates/263108 "2023-04-27T18:19:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acorrea](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/acorrea/32/302650_2.png) [@acorrea](https://meta.discourse.org/u/acorrea)\
**Post date:** [2023年四月27日 18:19 UTC](https://meta.discourse.org/t/how-to-change-the-styles-of-cta-buttons-of-email-templates/263108/1 "2023-04-27T18:19:26Z")

</div>

我想要稍微调整一下用于通知新主题的电子邮件模板中的两个“访问主题”链接。有办法更改这两个链接的样式吗？

![image](https://global.discourse-cdn.com/meta/original/4X/7/6/3/7638b855e37be23c2c8df2923785e6c3b26e4fa1.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/6/a/4/6a41d496bf1de67a431169aaffb474d5738024f1.png)

我希望将它们都设置为蓝色背景色并添加一些内边距。

我尝试通过选择 HTML 标签来添加 CSS，但它不起作用。我使用了正确的选择器（我在浏览器中测试过），但似乎在生成电子邮件时，我添加的所有样式都被忽略了。

我尝试直接在基本模板 HTML 中添加“style”标签，也尝试使用 CSS 选项卡，但两种方法都不起作用

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/d/5/dd5844a410f0e47242c1caaba891897a186eed1d.png)

有没有一种简单的方法可以更改这些元素的样式？
