小编Dav*_*ume的帖子

有没有办法向我的自定义 Keycloak 电子邮件主题添加样式?

标题说明了一切。

我尝试了多种方法,但似乎没有任何效果。

我尝试在 theme.properties 中导入样式表。styles=css/styles.css

我尝试直接在 html 标签中设置我的样式。<h1 style="color:blue;">

我尝试在我的 ftl 文件中添加我的风格,如下所示:

<html>
<style type="text/css">
body {
    margin: 0;
    font-family: 'Source Sans Pro';
    font-weight: 400;
    font-size: 16px;
}
.header{
    background-color: #B70E0C;
    width: 100%;
    height: 96px;
}

.footer{
    flex-shrink: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    background-color: #2D2D2D;
    z-index: 1;
    position: absolute;
    bottom: 0;
}

.footer a {
    color: white !important;
}

a:visited {
    color: initial;
}

.activate-btn{
    border-radius: 8px;
    padding: 12px 28px;
    background-color: #FDC300;
    color: …
Run Code Online (Sandbox Code Playgroud)

html css freemarker keycloak

4
推荐指数
1
解决办法
6090
查看次数

标签 统计

css ×1

freemarker ×1

html ×1

keycloak ×1