2016-12-05 21 views

回答

3

這PR "Add support for specifying CSS classes on all LayoutDOM"將進入散景0.12.4在2017年12月和提供一種機制,以任意的CSS類添加到任何散景LayoutDOM模型(例如窗口小部件),使得它們可更容易地樣式。

這將是可用的,如:

from bokeh.models import Div 
div = Div(text="some text") 

# add these CSS classes to the widget div 
div.css_classes = ["my-custom"] 

然後你就可以在你的模板或任何添加樣式.my-custom

+0

僅供參考此PR已被合併,並且該功能可用於「開發版本」0.12.4dev7' – bigreddot

+0

謝謝。 Plz詳細闡述了「無論」部分:我通過「散景服務」服務於文檔,並在「」中看到一對空白的''標籤。我如何填充它? –

相關問題