散景Div文字大小 [英] Bokeh Div Text Size

查看:46
本文介绍了散景Div文字大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不更改应用程序中其他Divs的文本大小的情况下更改单个bokeh Div小部件内的文本大小? ( https://docs.bokeh.org/en/latest/docs/reference/models/widgets.markups.html )

How do I change the text size inside a single bokeh Div widget without changing the text size of other Divs in my app? (https://docs.bokeh.org/en/latest/docs/reference/models/widgets.markups.html)

推荐答案

Div带有样式参数,您可以在其中放入填充有常规html样式的字典,例如:

Div takes a style argument in which you can put a dictionary filled with normal html styling, eg:

some_div = Div(text="<b>A Title</b>", style={'font-size': '200%', 'color': 'blue'})

这篇关于散景Div文字大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆