Whiteangel Posted February 15, 2014 at 05:36 PM Report #545404 Posted February 15, 2014 at 05:36 PM Boas pessoal, Como posso colocar um scroll vertical dentro de uma tabela?? <table border="inset" width="600" height="120" overflow="auto" ><tr> <center> <td BGCOLOR="darkorange"> <P ALIGN="right"> <a href="http://localhost/ListarClientes.php"> Listar todos os clientes </a></P ALIGN="right"> <form name="formularioPesquisa" method="POST" action="http://localhost/ConsultarClientes.php"> <blockquote> <label for="pesquisa"><font size="5" SCROLL="no">Nome:</font></label> <input class="textbox"type="text" name="Nome"> <input type="submit" value="Pesquisar" class="botao" name="Guardar" /> </br></blockquote> </form> </tr> </table>
I-NOZex Posted February 15, 2014 at 07:06 PM Report #545412 Posted February 15, 2014 at 07:06 PM overflow: scroll; ? B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Whiteangel Posted February 15, 2014 at 08:49 PM Author Report #545418 Posted February 15, 2014 at 08:49 PM (edited) overflow: scroll; ? Se meter assim não dá <table border="inset" width="600" height="120" overflow="scroll" > Edited February 15, 2014 at 08:52 PM by Whiteangel
Beholder Posted February 15, 2014 at 09:13 PM Report #545422 Posted February 15, 2014 at 09:13 PM Tira o overflow da table, usa css: table{ display:block; overflow-y:scroll; }
I-NOZex Posted February 15, 2014 at 09:54 PM Report #545426 Posted February 15, 2014 at 09:54 PM (edited) caso nao tenhas visto "Código (CSS)" Nao existe atributo overflow em html Edited February 15, 2014 at 09:54 PM by I-NOZex B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Whiteangel Posted February 15, 2014 at 10:16 PM Author Report #545428 Posted February 15, 2014 at 10:16 PM Tira o overflow da table, usa css: table{ display:block; overflow-y:scroll; } Mesmo assim não me aparece
I-NOZex Posted February 15, 2014 at 10:31 PM Report #545431 Posted February 15, 2014 at 10:31 PM mostra o codigo atual, eu ate fui testar para garantir q funciona... B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Whiteangel Posted February 15, 2014 at 10:47 PM Author Report #545432 Posted February 15, 2014 at 10:47 PM mostra o codigo atual, eu ate fui testar para garantir q funciona... <style type="text/css"> table{ display:block; overflow-y:scroll; } </style> <table border="inset" width="600" height="120" class="table" ><tr> <center> <td BGCOLOR="darkorange"> <br> <form name="formularioPesquisa" method="POST" action="http://localhost/Gestao_Empresarial/AlterarClientes.php"> <blockquote> <label for="pesquisa"><font size="5">Nome:</font></label> <input class="textbox"type="text" name="Nome"> <input type="submit" value="Alterar" class="botao" name="Guardar" /> </br></blockquote> </form> </tr> </table>
I-NOZex Posted February 15, 2014 at 10:58 PM Report #545434 Posted February 15, 2014 at 10:58 PM (edited) primeiro, esse html ta todo incorrecto! br's dentro da tabela, abres um td, e fechas um tr... a estrutura base de uma tabela é: <table> <tr> <!-- inicia uma linha --> <td> <!-- inicia celula --> </td> <!-- finaliza celula --> </tr> <!-- acaba uma linha --> </table> e desde que de disseram isto, tornou.se muito mais facil escrever o codigo de uma tabela sem ter q ir ver noutro lado: tr = table row (linha de tabela) td = table data (cria uma celula na linha) depois tens outras, que nao sao obrigatorias, mas recomendaveis: <thead></thead> = para definir linha de cabeçalho (para o nome das colunas) <tbody></tbody> = aqui fica os dados <tfooter></tfooter> = para definir linha de rodapé (para os totais, p.exmplo) Edited February 15, 2014 at 11:01 PM by I-NOZex B2R » Beat2Revolution v3.0b | Regista e divulga-nos beat2revolution.net
Whiteangel Posted February 15, 2014 at 11:10 PM Author Report #545435 Posted February 15, 2014 at 11:10 PM primeiro, esse html ta todo incorrecto! br's dentro da tabela, abres um td, e fechas um tr... a estrutura base de uma tabela é: <table> <tr> <!-- inicia uma linha --> <td> <!-- inicia celula --> </td> <!-- finaliza celula --> </tr> <!-- acaba uma linha --> </table> e desde que de disseram isto, tornou.se muito mais facil escrever o codigo de uma tabela sem ter q ir ver noutro lado: tr = table row (linha de tabela) td = table data (cria uma celula na linha) depois tens outras, que nao sao obrigatorias, mas recomendaveis: <thead></thead> = para definir linha de cabeçalho (para o nome das colunas) <tbody></tbody> = aqui fica os dados <tfooter></tfooter> = para definir linha de rodapé (para os totais, p.exmplo) E não dá para colocar o scroll como tenho??
Whiteangel Posted February 15, 2014 at 11:33 PM Author Report #545436 Posted February 15, 2014 at 11:33 PM E não dá para colocar o scroll como tenho?? Já consegui, obrigada 🙂
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now