【问题标题】:Sweetalert2: Remove inline style applied to elementsSweetalert2:删除应用于元素的内联样式
【发布时间】:2020-05-19 17:43:33
【问题描述】:

我在 sweetalert2 旁边使用 Tailwindcss。并使用此配置生成警报:

customClass: {
  ...
  image: 'hidden md:inline-block',
},

我使用 ImageUrl 进行警报配置。所以我的swal2-header 包含:

<img class="swal2-image hidden md:flex" src="/path/to/image" alt="" style="display: flex;">

由于hiddenmd:flex 类,我希望图像以小分辨率隐藏并在md 断点处可见,但内联style="display: flex;" 禁用了我的hidden 类,实际上已被替换用它。那么如何删除或禁用内联类呢?

【问题讨论】:

    标签: sweetalert2 tailwind-css


    【解决方案1】:

    Masih,这里是 SweetAlert2 的作者。

    我刚刚发布了新版本的 SweetAlert2 (v9.13.1),它没有在图像上设置 style="display: flex;"

    干杯!

    【讨论】:

      猜你喜欢
      • 2020-03-24
      • 2017-03-25
      • 2015-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多