我想編程一個混合形式,水平和內聯,與圖像,但我的bootstrap不幫我。表格內聯和水平與圖像
最後,代碼:
<form class='form-horizontal' method='post' enctype="multipart/form-data">
<div class='form-group'>
<label for='foto' class='sr-only'>Foto</label>
<img class='fotoassociado' src='../../<?php if($sqlcmd->Foto == '') {echo 'photos/no_photo.jpg';} else {echo $sqlcmd->Foto;} ?>' />
<input type='file' class='form-control' name='foto' id='foto' />
</div>
<div class='form-group'>
<label for='nome' class='sr-only'>Nome</label>
<input type='text' class='form-control' name='nome' id='nome' value='<?php echo $sqlcmd->Nome; ?>' />
</div>
<div class='form-group'>
<label for='email' class='sr-only'>E-mail</label>
<input type='email' class='form-control' name='email' id='email' value='<?php echo $sqlcmd->Email; ?>' />
</div>
<div class='form-group'>
<label for='rg' class='sr-only'>RG</label>
<input type='rg' class='form-control rg' name='rg' id='rg' value='<?php echo $sqlcmd->RG; ?>' />
</div>
<div class='form-group'>
<label for='cpf' class='sr-only'>CPF</label>
<input type='cpf' class='form-control cpf' name='cpf' id='cpf' value='<?php echo $sqlcmd->CPF; ?>' />
</div>
<div class='form-group'>
<label for='TelRes' class='sr-only'>Residencial</label>
<input type='text' class='form-control' name='TelRes' id='TelRes' value='<?php echo $sqlcmd->TelResidencial; ?>' />
</div>
<div class='form-group'>
<label for='TelCom' class='sr-only'>Comercial</label>
<input type='text' class='form-control' name='TelCom' id='TelCom' value='<?php echo $sqlcmd->TelComercial; ?>' />
</div>
<div class='form-group'>
<label for='TelCel' class='sr-only'>Celular</label>
<input type='text' class='form-control' name='TelCel' id='TelCel' value='<?php echo $sqlcmd->TelCelular; ?>' />
</div>
</form>
幫助!謝謝! –