我的边缘底边被切掉了

时间:2015-05-05 12:11:28

标签: html css

我的边框底部有问题。左右边缘以某种方式切割,它们不会相互接触

<nav>
    <ul class="cd-tabs-navigation">
        <li class="col-xs-2 no-padding"><a data-content="passenger" class="selected" href="#0">></a>
        </li>
        <li class="col-xs-2 no-padding"><a data-content="truck" href="#0"></a>
        </li>
        <li class="col-xs-2 no-padding"><a data-content="machine" href="#0"></a>
        </li>
    </ul>
    <!-- cd-tabs-navigation -->
</nav>

JsFiddle

1 个答案:

答案 0 :(得分:0)

这是因为if($client = $requeteClt->fetch()) { $select = "<?php if($client['CLT_type']==2) echo 'selected'; ?>"; $page->appendContent(<<<HTML <div id='res' height='800px'></div> <form id='form' name='form' method='POST' action='modifierClientScript.php' style='width:100%;'> <h2 style="text-align:center;">Modification du client {$client['CLT_libelle']}</h2> <p> <label for='montant'>Nom :</label> <input type='text' value='{$client['CLT_libelle']}' name='nom' id='nom'> <span class="error" id="nomErr"></span> </p> <p> <label for='type'>Segmentation Client :</label> <SELECT name='type' id='type'> <optgroup label="Publics"> <OPTION value='1'>Etat <OPTION value='2' {$select}>Collectivité <OPTION value='3'>Entreprise publique <optgroup label="Privés"> <OPTION value='4'>Entreprise de service <OPTION value='5'>Entreprise industrielle <OPTION value='6'>Autres </SELECT> </p><br/> <p><br/> <input type='button' name='submit' id='submit' value='Modifier le client'> </p> </form> HTML ); 元素只有143px高(带边框)而其他元素是146px。
您可以通过向a添加height: 143px(所以边框为146px)来解决此问题:

.cd-tabs-navigation a.selected

Updated fiddle