【发布时间】:2018-01-12 18:11:17
【问题描述】:
我尝试设置一个单独的 css 类来覆盖下拉菜单的样式。但是,它不起作用。
#form.py
class fundForm(forms.Form):
fund = forms.ChoiceField(choices=FUND, required=True, widget=forms.Select(attrs={'class': 'selectpicker .selectStyle'}))
class META:
model = fundList
#html
.selectStyle{
font-size: 5px
}
【问题讨论】:
-
那么任何答案是否有助于您实现目标?
标签: python html django bootstrap-4 bootstrap-select