我正在使用Bootstrap dash 布局作为我的 Web 应用程序布局。但我希望文本位于红色区域,而不是位于页面顶部。我怎样才能实现它?
我尝试过使用"align":"center" and "justify":"center"但没有任何帮助
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash
body = dbc.Container([
dbc.Row(
[
html.H1("test")
], justify="center", align="center"
)
]
)
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.SUPERHERO])
app.layout = html.Div([body])
if __name__ == "__main__":
app.run_server(debug=True)
Run Code Online (Sandbox Code Playgroud)
了解使用flask-bootstrap有一些解决方法,但是如何使用dash-plotly-booststrap做同样的事情?
例如,我有一个字符串:
"Hello My name is Ralph"
Run Code Online (Sandbox Code Playgroud)
有什么方法可以检测到H. M. n. i. R吗?