知识

div class =line-input div class =icon img src =__STATIC__/css/weixin/image/video.svg alt = /div div class =self-input style = margin-left : 0.5 em ; label span class =name 座位 /span select class =small-input name =seat_region style = mar

您当前位置>主页 > 知识 > 软件开发 >

手机端多个下拉框点击选择始终选择第一个原因

发表时间:2020-05-25 11:08

文章来源:admin

浏览次数:

<div class="line-input">
    <div class="icon"><img src="__STATIC__/css/weixin/image/video.svg" alt=""></div>
    <div class="self-input" style="margin-left:0.5em;">
        <label>
            <span class="name">座位</span>
            <select class="small-input" name="seat_region" style="margin-left:0em;">
                <option value=""></option>
                <volist name="seat_regions" id="val">
                    <option value="{$val.zone_name}">
                        {$val.zone_name}
                    </option>
                </volist>
            </select>
            <span></span>
            <select class="small-input" name="seat_row" style="margin-left:0em;">
                <option value=""></option>
                <volist name="seat_rows" id="val">
                    <option value="{$val}">
                        {$val}
                    </option>
                </volist>
            </select>
            <span></span>
            <select class="small-input" name="seat_column" style="margin-left:0em;">
                <option value=""></option>
                <volist name="seat_columns" id="val">
                    <option value="{$val}">
                        {$val}
                    </option>
                </volist>
            </select>
            <span></span>
        </label>
    </div>
</div>
手机端多个下拉框点击选择始终选择第一个原因:select 控件外层不能包一层label,去除label标签就可以了。

相关项目查看更多