Página 1 de 1
Html <tr> remover linhas horizontais.
Enviado: 06 Mai 2022 20:18
por Itamar M. Lins Jr.
Olá!
Tô procurando o comando para remover a linha horizontal da tag tr
Quem souber e puder informar ficarei grato.
PS. procurando no google...
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 06 Mai 2022 22:27
por alxsts
Olá!
Itamar M. Lins Jr. escreveu:PS. procurando no google...
Achei
lá...:
Código: Selecionar todos
<div style="border: 1px solid black">
<table border="0">
<tr>
<td>one</td>
<td>two</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
</tr>
</table>
</div>
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 08:15
por Itamar M. Lins Jr.
Olá!
Esse border="0" remove também as linhas das colunas.
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 09:52
por Itamar M. Lins Jr.
Olá!
<tr><td style="border:0;">...
Livro de entradas em html/pdf.
Harbour + HTML + CSS -> Na criação de relatórios.
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 10:00
por Itamar M. Lins Jr.
Olá!
Detalhe que é tudo numa linha só!
O navegador que organiza TUDO!
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 10:09
por Itamar M. Lins Jr.
Olá!
Zebrado.
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 16:14
por Poka
Boa tarde Itamar.
Beleza seu relatorio. Agora não tem jeito, tenho que aprender HTML e CSS mesmo.
Agradecer á todos que escrevem sobre esse tema aqui no forum, mas o medo sempre presente, medo não, qual ferramenta usar de primeira e dar certo, não tenho tempo nem idade pra tentar várias ferramentas e ver o que eu vou gostar mais, e por aí vai.
Quando todos dizendo que tem que trocar o harbour, pegar essa ou aquela, linguagem, comprar isso e aquilo, vc sempre vinha dizendo que nenhuma linguagem funciona na internet. Internet so entende html.
a ultima dica sua no post anterior jogando tudo numa variavel já como html, clareou mais a idéia.
comecei a mexer à uns dias, e ja consigo criar qq relatório do meu sistema em html e carregar no navegador.
Agora indo aos poucos aprendendo cada vez mais.
Obrigado pelo incentivo Itamar. Saúde e paz pra vc.
Poka
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 17:12
por JoséQuintas
Html <tr> remover linhas horizontais.
Enviado: 09 Mai 2022 20:00
por Itamar M. Lins Jr.
Olá!
Código: Selecionar todos
METHOD CabecalhoLivroSaidasHtml(nPagina,nMes,cAno) CLASS LivroSaidasHtml
LOCAL cHtml
cHtml := '<!DOCTYPE html><html><head>'
cHtml += '<link rel="stylesheet" type="text/css" href="/print.css" media="print" />'
cHtml += '<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>'
cHtml += '<title>Livro de Saidas</title>'
cHtml += '<style>'
cHtml += '@media print {'
cHtml += '@page { margin: 0; }'
cHtml += 'body { margin: 0.5cm; }'
cHtml += '}'
cHtml += 'table,th,td{'
cHtml += ' FONT: 8pt "Lucida Console";'
cHtml += ' border: 1px solid #CCC;'
cHtml += ' border-collapse:collapse;'
cHtml += ' color:#000000;'
cHtml += ' table-layout: fixed; width: auto'
cHtml += '}'
//cHtml += 'td {border:none;}'
cHtml += 'p.quebra { page-break-before: always }'
cHtml += 'ft.a { font: 14px Arial; font-weight: bold ; } '
cHtml += 'ft.b { font: 11px sans-serif; }'
cHtml += 'ft.c { font: 12px Arial; }'
cHtml += 'ft.d { font: 13px Arial; }'
cHtml += '.zebra tbody tr:nth-child(2n+2) { background: #ccc; } '
cHtml += '</style>'
cHtml += '</head><body><div align="center">'
RETURN cHtml
METHOD TituloLivroSaidasHtml(nPagina,nMes,cAno) CLASS LivroSaidasHtml
LOCAL cHtml
cHtml := '<table cellpadding="1" cellspacing="1">'
cHtml += '<col width="020px"/>'
cHtml += '<col width="020px"/>'
cHtml += '<col width="080px"/>'
cHtml += '<col width="020px"/>'
cHtml += '<col width="020px"/>'
cHtml += '<col width="090px"/>'
cHtml += '<col width="030px"/>'
cHtml += '<col width="030px"/>'
cHtml += '<col width="080px"/>'
cHtml += '<col width="030px"/>'
cHtml += '<col width="080px"/>'
cHtml += '<col width="080px"/>'
cHtml += '<col width="080px"/>'
cHtml += '<col width="080px"/>'
/*
cHtml += '<col width="150px"/>'
cHtml += '<col width="250px"/>'
cHtml += '<col width="390px"/>'
*/
cHtml += '<tr>'
cHtml += '<th align="center" colspan="14" style="border:0;font-family:verdana;font-weight:bold">LIVRO REGISTRO DE SAIDAS(RS) - MODELO P2/A</th></tr>'
cHtml += '<tr><th colspan="14" style="border:0;" align="left" colspan="2"> Firma: ' + AllTrim(em->empresa) + '</th>'
cHtml += '<tr><th colspan="7" align="left" style="border:0;"> Insc.Est.: ' + AllTrim(em->I_E) + '</th>'
cHtml += '<th colspan="7" align="left" style="border:0;">CNPJ: ' + Transform(em->cgc,"@r 99.999.999/9999-99")+'</th></tr>'
cHtml += '<tr><th colspan="7" align="left" style="border:0;"> Folha: ' + StrZero(nPagina,4) + '</th>'
cHtml += '<th colspan="7" align="left" style="border:0;"> Mês ou Período/Ano: ' + mes(nMes)+'/'+cAno + '</th></tr>'
cHtml += '<tr><td align="center" colspan="5" style="font-family:verdana;font-weight:bold">Documentos Fiscais</td>'
cHtml += '<td align="center" rowspan="9" >Valor Contábil</td>'
cHtml += '<td colspan="2">Codificação</td>'
cHtml += '<td align="center" colspan="5" style="font-family:verdana;font-weight:bold">Valores Fiscais</td>'
cHtml += '<td rowspan="9">Observações</td></tr>'
//cHtml += '<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>'
cHtml += '<tr>'
cHtml += '<td rowspan="7" align="center">ES- PE- CIE</td>'
cHtml += '<td rowspan="7" align="center">SE- RIE SUB SE- RIE</td>'
cHtml += '<td rowspan="7" align="center">Número</td>'
cHtml += '<td rowspan="7" align="center">Dia</td>'
cHtml += '<td rowspan="7" align="center">UF Dest</td>'
cHtml += '<td rowspan="7" align="center">Con- tábil</td>'
cHtml += '<td rowspan="7" align="center">CFOP</td>'
cHtml += '<td rowspan="2" colspan="3" align="center">Operações com débito do imposto</td>'
cHtml += '<td rowspan="2" colspan="2" align="center">Operações sem débito do imposto</td>'
cHtml += '</tr>'
cHtml += '<tr></tr>'
cHtml += '<tr>'
cHtml += '<td align="center" rowspan="2">Base de cálculo</td>'
cHtml += '<td rowspan="2" align="center">ALIQ</td>'
cHtml += '<td rowspan="2" align="center">Imposto Debitado</td>'
cHtml += '<td rowspan="2" align="center">Isentas ou não tributadas</td>'
cHtml += '<td rowspan="2" align="center">Outras</td></tr>'
cHtml += '<tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>' + hb_eol()
RETURN cHtml

Essa foi a pior parte, por conta desse "rowspan".
Agora indo aos poucos aprendendo cada vez mais.
Eu também, cada dia um pouquinho.
Saudações,
Itamar M. Lins Jr.
Html <tr> remover linhas horizontais.
Enviado: 10 Mai 2022 14:45
por JoséQuintas
Não uso mais, na época o layout foi aprovado, apenas pediram pra colocar FOLHA ao invés de PÁGINA.
Html <tr> remover linhas horizontais.
Enviado: 10 Mai 2022 21:26
por Itamar M. Lins Jr.
Olá!
Resposta para minha pergunta.
Código: Selecionar todos
<html>
<head>
<title>Tabela</title>
<style type="text/css">
table { width: 300px; border-collapse: collapse; }
td {
border-color: #FFFFFF;
background-color: #CCCCCC;
border-style: solid;
border-bottom-width: 0;
border-top-width: 0;
border-right-width: 1px;
border-left-width: 1px;
}
</style>
</head>
<body>
<table>
<tr>
<td><u>NOME DA CIDADE</u></td>
<td><u>FUTEBOL</u></td>
<td align="center"><u>Qtde</u></td>
<tr/>
<tr>
<td>ILHÉUS</td>
<td>BAHIA</td>
<td align="center">1</td>
<tr/>
<tr><td colspan="3">...</td><tr/>
</table>
</body>
</html>
Copiar e colar usando notepad, por exemplo "teste.html"
Abrir no navegador.
Saudações,
Itamar M. Lins Jr.