在破折号中给 html.H3 元素加下划线

Underline an html.H3 element in dash

我想在 dash 中给 html.H3() 标题加下划线。我的标题看起来是这样的:

html.H3('Distributions', style={'font-size': '20px'})

如何给标题加下划线?

我看到您可以将 css 添加到 h3 元素中,因此,text-decoration 会在这里提供帮助

html.H3('Distributions', style={'font-size': '20px', 'text-decoration': 'underline'})