Jump to content
Fórum Script Brasil
  • 0

Quebra De Linha No Select.


Guest Manoel Messias

Question

Guest Manoel Messias

Bom dia!

Tenho um select que os itens <option> são longos, com isso não cabem na área da tela.

<TD colspan="2" width="20%" nowrap="nowrap">
        <select name="numpat" id="select" class="edit" style="border-color:red;" onchange="valida_setor(this)" style="width:200px">
        <option value="0">Selecione tipo de bem</option>
<?php 
       include("/web/intranet/conecta.php");
       $set = "SELECT * FROM sis_pat_conta_contabil ORDER BY itens";
       $set=mysql_query($set);
       $row=mysql_num_rows($set);
       for($i=0; $i<$row; $i++) { ?>
       <option value="<? echo mysql_result($set, $i, "id"); ?>">
       <? echo mysql_result($set, $i,"itens"); ?></option>
<?       } ?>

    </select>
  </TD>

Aceito qualquer palpite.

Obrigado.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.5k
×
×
  • Create New...