【问题标题】:External css in plotly dashplotly dash中的外部css
【发布时间】:2020-05-01 20:01:48
【问题描述】:

我正在尝试将外部 js(来自 codepen)添加到我的 plotly dash 应用程序中。使用这一行:

app = dash.Dash(__name__, external_scripts=['https://codepen.io/LeonGr/pen/yginI.js'])

我希望将其用作应用程序背景。有谁知道这是否可以使用 plotly dash ?如果是这样,我哪里出错了?

不知道怎么添加js应用的背景元素

谢谢!

【问题讨论】:

    标签: python html html5-canvas plotly plotly-dash


    【解决方案1】:

    我不完全确定我是否理解了你的问题,但我会试一试。

    您当然可以添加外部 CSS。请参阅文档中的 this page 并向下滚动到“添加外部 CSS/Javascript”。我看到你已经添加了外部脚本,你只需要外部样式表。

    如果我有误解,请纠正我,我会尽力提供更多帮助。

    【讨论】:

      猜你喜欢
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      • 2021-12-12
      • 1970-01-01
      • 2019-04-08
      • 2021-01-16
      • 2020-07-22
      • 2021-02-08
      相关资源
      最近更新 更多