Django将img添加到<option>

时间:2017-11-09 18:30:48

标签: python django html5

你好,我向你们提问。如何在django

中为每个选项添加特定的img
    <select id="sTypes2" name="current_tier" class="form-control input-lg c-square">
        <option value="Silver I">Silver I</option>
        <option value="Silver II">Silver II</option>
        <option value="Silver III">Silver III</option>
        <option value="Silver IV">Silver IV</option>
        <option value="Silver Elite">Silver Elite</option>
        <option value="Silver Elite Master">Silver Elite Master</option>
        <option value="Gold Nova I">Gold Nova I</option>
        <option value="Gold Nova II">Gold Nova II</option>
        <option value="Gold Nova III">Gold Nova III</option>
        <option value="Gold Nova Master">Gold Nova Master</option>
        <option value="Master Guardian I">Master Guardian I</option>
        <option value="Master Guardian II">Master Guardian II</option>
        <option value="Master Guardian Elite">Master Guardian Elite</option>
        <option value="Distinguished Master Guardian">Distinguished Master Guardian</option>
        <option value="Legendary Eagle">Legendary Eagle</option>
        <option value="Legendary Eagle Master">Legendary Eagle Master</option>
        <option value="Supreme Master First Class">Supreme Master First Class</option>
        <option value="Global Elite">Global Elite</option>

1 个答案:

答案 0 :(得分:0)

这看起来不像Django的问题。这有点像HTML。请检查here