CSS没有完全显示在Gmail中

问题描述

我正在尝试使用php邮件功能向用户的电子邮件发送验证电子邮件,该电子邮件为html和CSS。在邮件中,所有内容,颜色,字体大小等均显示,但flex-direction和其他flex命令不起作用,我什至检查了电子邮件,发现我在电子邮件中发送时甚至没有包含在代码中 这是html:

const client =  await soap.createClientAsync(wsdl);
const sslSecurity = new soap.ClientSSLSecurity(xxx,xxx);
const wsSecurity = new soap.WSSecurity("xxx","xxx");
const securityStack = new SecurityStack(sslSecurity,wsSecurity);
client.setSecurity(securityStack);

这应该显示:

enter image description here

但这是gmail显示的内容:

enter image description here

当我检查gmail并检查CSS时,看到的是:

enter image description here

没有伸缩方向或其他我该怎么办?

解决方法

我认为Gmail不支持flex https://www.campaignmonitor.com/css/flexbox/flex/

,

因此,推荐的是: 我让您根据需要调整表元素。可能您需要删除css中所有的display / align / flex-direction

from datetime import datetime,timedelta
from airflow import models
import pendulum
from airflow.operators import bash_operator

local_tz = pendulum.timezone("America/New_York")

default_dag_args = {
    'start_date': datetime(2020,8,4,tzinfo=local_tz),'retries': 0,}

with models.DAG(
        'Test',default_args=default_dag_args,schedule_interval='00 04 * * 2-6') as dag:
       # DAG code
    print_dag_run_conf = bash_operator.BashOperator(
        task_id='print_dag_run_conf',bash_command='echo {{ dag_run.id }}')

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...