基金会:我如何获得复选框旁边的标签?

时间:2014-10-15 10:43:17

标签: zurb-foundation

作为体验的实验,我试图将我的Bootstrap网站转换为Foundation。

我无法看到如何在复选框右侧获取复选框标签。

截图

enter image description here

代码

    <!-- Registration Form -->
    <div class="row">
        <div class="containerReg">
            <div class="twelve columns">            
                <div class="six columns">                           
                    <div class="reglayer">
                        <div class="twelve columns">
                            <!-- Registration Form -->
                            <h6>Chat now, it's free! </h6>      
                                <form action="client/index" method="post" target="_blank">    
                                 <div class="row">
                                    <div class="three mobile-one columns">
                                        <label class="right inline">Nickname:</label>
                                    </div>
                                        <div class="nine mobile-four columns">
                                        <input name="nickname" type="text" />
                                    </div>
                                 </div>                     
                                 <div class="row">
                                    <div class="three mobile-one columns">
                                        <label class="right inline">Gender:</label>
                                    </div>
                                        <div class="nine mobile-four columns">
      <input type="checkbox" name="gender" value="Female" id="Female"><label for="Female">Female</label>
      <input type="checkbox" name="gender" value="Male" id="Male"><label for="Male">Male</label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="three mobile-one columns">
                                        <label class="right inline">Room:</label>
                                    </div>
                                        <div class="nine mobile-four columns">
      <input type="checkbox" name="channel" value="channel1" id="channel1"><label for="channel1">channel1</label>
      <input type="checkbox" name="channel" value="channel2" id="channel2"><label for="channel2">channel2</label>
                                    </div>
                                </div>
                                <p class="terms"> I am 18 years of age or older and have read and agree to obide by the Terms and Conditions</p>    
                                </form>
                                <!-- Submit Button -->
                                <div class="row">
                                    <div class="eleven columns centered"><a href="#" class="radius button">Connect to chat</a></div>
                                </div>                                      
                        </div>
                    </div>
                </div>

                <!-- Spacer Columns -->
                <div class="five columns"></div>

            </div>
        </div>
    </div>

问题

我怎样才能得到它:

性别行如下:

[] Female    [] Male

(正确间隔上面的文字输入)

房间行如:

[] channel1
[] channel 2

1 个答案:

答案 0 :(得分:0)

尝试在标签内添加输入

<label for="channel1"><input type="checkbox" name="channel" value="channel1" id="channel1">channel1</label>