【问题标题】:How to add class and id attributes to images added through django-cms?如何为通过 django-cms 添加的图像添加 class 和 id 属性?
【发布时间】:2012-10-28 06:57:02
【问题描述】:

我正在使用cms.plugins.picture 插件通过 django cms 将图像添加到我的网站。我需要指定要添加的图像的 class 和 id 属性。如何从 cms 或模板系统中做到这一点?

【问题讨论】:

    标签: django plugins image django-cms


    【解决方案1】:

    我发现这是不可能的。因此,我使用 jQuery 在文档就绪处理程序中添加类和 id。

    【讨论】:

      猜你喜欢
      • 2013-08-20
      • 2017-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-11
      • 2015-04-20
      • 2021-11-20
      • 1970-01-01
      相关资源
      最近更新 更多