[英]How to specify styles for individual classes in Dash Plotly?
我正在嘗試將以下 CSS 實現到此 Dash Plotly 代碼中。
.stats-list {
list-style:none;
padding:0;
flex:1;
color:gray;
}
這是我到目前為止的 Dash Plotly 代碼
html.Div(className='body', children=[
html.Ul(className='stats-list', children=[
#A bunch of list items
]),
html.Ul(className='stats-list', children=[
#A bunch of list items
]),
html.Ul(className='stats-list', children=[
#A bunch of list items
])
])
我不想為每個無序列表做的是
html.Ul(className='stats-list', children=[
], style={
'listStyle':'none',
'padding':0,
'flex':1,
'color':gray #gray is a defined variable
})
提前謝謝你:D
只需將您自己的 CSS 文件添加到項目中,並在那里定義那些 CSS 類。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.