清除按钮,使用CSS清除复选框

时间:2017-04-14 15:44:21

标签: html css

有没有人知道如何创建一个清除按钮,只使用CSS和HTML清除复选框?原因是明确的功能不适用于IE8,因此CSS和HTML是唯一的方法。谢谢

1 个答案:

答案 0 :(得分:2)

您可以通过以下方式实现这一目标:

listOfTimes = ['time1', 'time2']
someOtherList = [['booking1', 'booking2'], ['booking3', 'booking4']]

查看实时示例:



{% for time in listOfTimes %}
    {% for booking in someOtherList|get_index:forloop.counter0 %}
        {{ booking }}
    {% endfor %}
{% endfor %}