【发布时间】:2022-07-01 23:00:57
【问题描述】:
我正在使用 dash 引导组件,因此我的所有组件都在我想要的布局中。 但是他们在他们的行的中心被混淆了。从左侧到我的第一张图有很多空白空间。为什么会这样?如何删除?
这是我的代码及其外观。我不知道为什么我的组件没有从最左边开始。当然,除了我的“头衔”。这应该是中心。但我的标签和图表已关闭。
from dash import Dash, dcc, html, Input, Output # pip install dash (version 2.0.0 or higher)
import dash_bootstrap_components as dbc
app = Dash(__name__, external_stylesheets = [dbc.themes.BOOTSTRAP])
# ------------------------------------------------------------------------------
# App layout
app.layout = dbc.Container([
dbc.Row([
dbc.Col([
html.H1("Title", style={'textAlign': 'center'})
], width=12)
]),
dbc.Row([
dbc.Col([
html.Label("Label1"),
dcc.Loading(id='loading0', parent_style=loading_style, children = [dcc.Graph(id='feature_plots', figure={})])
], width=6),
dbc.Col([
html.Label("Label2"),
], width=3)
]),
]
)
【问题讨论】:
标签: plotly plotly-dash dash-bootstrap-components