如何在HTML中的fieldset标记中获取边框

时间:2014-02-14 07:49:41

标签: html

我正在使用此HTML代码,但我没有在<feilset>中获得边框。请问,任何人都可以帮助我使这段代码正常工作吗?

<feildset>
    <label>PIS</label>
    <div class="row" >
        <div class="col-lg-3 col-md-5 col-sm-7">
            <label class="label_text">Tipo Cálculo</label>
        </div>
        <div class="col-lg-3 col-md-4 col-sm-5">
            <select class="form-control input-sm">
                <option>1 - Saida</option>
            </select>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-7">
            <label class="label_text">Aliquota ICMS</label>
        </div>
        <div class="col-lg-2 col-md-3 col-sm-4">
            <input type="text" class="form-control input-sm">
        </div>
        <div class="col-lg-1 col-md-3 col-sm-7">
            <label class="label_text">Aliquota </label>
        </div>
        <div class="col-lg-2 col-md-3 col-sm-4">
            <input type="text" class="form-control input-sm">
        </div>
    </div>
</feildset>

2 个答案:

答案 0 :(得分:1)

代码中的错误是<feilset>将其更改为<fieldset>

的拼写错误

<强> HTML

<fieldset>
     <legend>Sample</legend>
    <label>PIS</label>
    <div class="row" >
        <div class="col-lg-3 col-md-5 col-sm-7">
            <label class="label_text">Tipo Cálculo</label>
        </div>
        <div class="col-lg-3 col-md-4 col-sm-5">
            <select class="form-control input-sm">
                <option>1 - Saida</option>
            </select>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-7">
            <label class="label_text">Aliquota ICMS</label>
        </div>
        <div class="col-lg-2 col-md-3 col-sm-4">
            <input type="text" class="form-control input-sm"/>
        </div>
        <div class="col-lg-1 col-md-3 col-sm-7">
            <label class="label_text">Aliquota </label>
        </div>
        <div class="col-lg-2 col-md-3 col-sm-4">
            <input type="text" class="form-control input-sm"/>
        </div>
    </div>
</fieldset>

Fiddle Demo

<强>输出:

enter image description here

答案 1 :(得分:0)

语法错误。

<feildset> - wrong
<fieldset> - right