我用 Plotly Dash / Dash Bootstrap Components (dbc) 撰寫了一個應用程式。使用淺色主題(Spacelab)時看起來不錯,但使用深色主題(我嘗試過
這是展示問題的其他功能齊全的代碼:
import dash
import dash_html_components as html
import dash_bootstrap_components as dbc
app = dash.Dash()
app.config.external_stylesheets = [dbc.themes.DARKLY]
app.layout = html.Div(children=[
html.H1(children='Hello Dash'),
html.Br(),
dbc.Input(id="run-namefield", type="text", placeholder="Run Name"),
html.Br(),
dbc.Select(id='run-relpath-y', placeholder="Select y file")
])
app.run_server(debug=True)
我用一個有同樣問題的示例應用程式替換了我的代碼。黑暗中的黑暗,幾乎無法閱讀。
我沒有在其他任何地方修改布局,而且我在任何地方都沒有 .css 檔案,它目前是單個代碼檔案。我嘗試了 Chrome 和 Edge(結果相同),還洗掉了 cookie/強制重繪 頁面(Ctrl F5)。
關于我可以嘗試什么的任何提示?或者這可能是主題中的錯誤?
uj5u.com熱心網友回復:
這是一個錯誤,已在最新版本 (#1.0.2) 中修復。如果遇到此錯誤,請運行:
pip install -U dash-bootstrap-components
有關更多資訊,請參閱https://github.com/facultyai/dash-bootstrap-components/issues/827#issuecomment-1069361034
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/452334.html
標籤:Python css 推特引导 破折号 破折号引导组件
