HTML
<select name="doc-step2-seniority" id="id_doc-step2-seniority" data-original-title="" title="">
<option value="Specialty Registrar" data-speciality="True">Specialty Registrar</option>
<option value="Foundation Programme" data-speciality="True">Foundation Programme</option>
<option value="Junior doctor" data-speciality="False">Junior doctor</option>
</select>
另外我使用 Django 来显示这个选择:
seniority = forms.ModelChoiceField(queryset=Seniority.objects,
required=True)
当我这样做时也会发生:
user_title = forms.ChoiceField(choices = [(c,c) for c in [_('Dr'),_('MD'),_('Prof'),_('Mrs'),_('Mr'),_('Ms')]], required=True)
我想css可能是问题所在,因为我删除了css并且奇怪的字符消失了: