如何使问号与文本内联

How to make the question mark inline with the text

代码:

# -*- coding: utf-8 -*-
import base64
import io
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table

from dash.dependencies import Input, Output, State

app = dash.Dash(
    __name__, meta_tags=[{"name": "viewport", "content": "width=device-width"}], suppress_callback_exceptions=True
)
server = app.server

app.layout = html.Div(children=[html.Label("Select Model"), html.Abbr("\u2753", title="Hello, I am hover-enabled helpful information.")])

if __name__ == "__main__":
    app.run_server(port=8069, debug=True)#, dev_tools_ui=False,dev_tools_props_check=False)

我无法使其与这个 html.Label 标签内联。有什么办法吗?

您可以像这样在 html.Label 样式中设置 float = 'left'

app.layout = html.Div(children=[html.Label("Select Model", style = {'float': 'left'}), html.Abbr("\u2753", title="Hello, I am hover-enabled helpful information.")])