【问题标题】:Broken style in laravel email notificationlaravel 电子邮件通知中的破碎样式
【发布时间】:2018-08-01 07:06:38
【问题描述】:

我发送了几行列表:

->line(' - Submit your own recipes and link to your own site.Get customized newsletters based on your food and drink profile.')
->line(' - Take part in contests with amazing prizes and get invited to events!')
->line(' - Are you a business or brand? Create your own profile to promote to your audience!')

但列表的最后一项会损坏样式:

如何解决?

【问题讨论】:

  • 请显示更多代码
  • 检查最后一个列表项,可能有一个针对它的css选择器。
  • @Sakezzz 你想看哪个代码? laravel 做的其他事情。
  • @DigitalDrifter 我明白了。我添加截图。但它是如何解决的呢?
  • @bunumu 最好是整行

标签: php laravel laravel-5 laravel-5.4 html-email


【解决方案1】:

使用以下代码:

class HelloUser extends Notification {
            public function via($notifiable){
                return ['mail'];
            }

            public function toMail($notifiable) {
                return (new MailMessage)
                    ->line('Submit your own recipes and link to your own site.Get customized newsletters based on your food and drink profile.')
                    ->line('Take part in contests with amazing prizes and get invited to events!')
                    ->line('Are you a business or brand? Create your own profile to promote to your audience!');
            }

        }

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-20
  • 1970-01-01
  • 2013-12-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多