【问题标题】:how to add alt tag in ipslot in impresspages如何在impresspages的ipslot中添加alt标签
【发布时间】:2015-09-16 11:05:21
【问题描述】:

我想在这个里面加alt标签,但是当我用这个的时候,它不起作用。

'244','height' => '163','id' => 'image1','default' => ipThemeUrl('assets/img/ani.png'), 'class' => 'img-responsive' ); echo ipSlot('image', $options); ?>

【问题讨论】:

  • 缺少部分代码。并将其样式化为代码(在每行前面添加 4 个空格)。
  • '244', 'height' => '163', 'id' => 'image1', 'default' => ipThemeUrl( 'assets/img/ani.png'), 'class' => 'img-responsive'); echo ipSlot('image', $options); ?>

标签: image alt impresspages


【解决方案1】:

我研究了代码。不幸的是,alt标签目前没有在核心中实现。

如果你真的需要这个,你可以检查其他插槽如何实现属性并对这个插槽做同样的事情。然后在 GitHub 上创建一个拉取请求,它将在下一个版本中添加到核心中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-04
    • 1970-01-01
    • 2020-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多