【发布时间】:2019-02-06 09:58:15
【问题描述】:
我这样做是为了用破折号显示多张图像,但它显然不起作用,因为它只显示一张图像。
for i in images:
app.layout = html.Div([
html.Div([
html.A([
html.Img(
src=app.get_asset_url(i),
style={
'height' : '40%',
'width' : '40%',
'float' : 'left',
'position' : 'relative',
'padding-top' : 0,
'padding-right' : 0
}
)
], href='https://www.google.com'),
])
])
最简单的方法是什么?考虑到这些是图像而不是情节。
【问题讨论】:
标签: python html plotly-dash