在没有烧瓶的散景中显示标题div(全宽)

时间:2020-10-30 14:21:13

标签: bokeh

有人可以帮我吗?我想要散景中的标头(完整页面宽度),如下所示。 Full Width 但是我只得到一些宽度(下图)。当然,我也希望徽标也显示在标题的左窗格中。 No Full Width 我使用以下代码显示div。

from bokeh.io import show
from bokeh.models import Div

div = Div(text="""<div style="background: #0000FF;height: 55px; width:100%;text-align: center">
        <a href="/"><img src="Logo.png" class="logo" style="float:left;width:175px;"></a>
        <h3 class="text-center text-white" style="display:inline;color:#fff;">HEADER</h3>
    </div>""")
show(div)

请有人帮我获得全宽。

谢谢。

0 个答案:

没有答案