Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

¿Como puedo imprimir color de fondo en tablas?

  • 3 উত্তরসমূহ
  • 1 এই সমস্যাটি আছে
  • 5 দেখুন
  • শেষ জবাব দ্বারা alex_mayorga

more options

En mi página web hice una tabla, en ella ocupo colores de fondo especificos al desear imprimir la tabla como pdf los fondos de la tabla se borran, como puedo mantener el formato que le doy?

Nombre: Nombre:
Puesto: Puesto:
Firma: Firma:

ya intente agregando clases, por ejemplo: @media print {

 .area-firmas

{

 background-color: rgb(204, 204, 204);

}

 .separador-rojo

{

 background-color: rgb(179, 4, 4);

} }

pero lo ignora.


que puedo hacer?

En mi página web hice una tabla, en ella ocupo colores de fondo especificos al desear imprimir la tabla como pdf los fondos de la tabla se borran, como puedo mantener el formato que le doy? <table class="aligncenter" style="width: 1200px; border: 1px solid #aaa;"> <tbody> <tr> <td class="separador-rojo" style="width: 300px; height: 40px; background-color: #b30404;" colspan="2"> </td> <td class="separador-rojo" style="width: 300px; height: 40px; background-color: #b30404;" colspan="2"> </td> </tr> <tr> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Nombre:</strong></td> <td style="width: 450px; height: 40px; border-width: 1px; border-color: #fff #fff #777 #fff; border-style: solid;"> </td> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Nombre:</strong></td> <td style="width: 450px; height: 40px; border-width: 1px; border-color: #fff #fff #777 #fff; border-style: solid;"> </td> </tr> <tr> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Puesto:</strong></td> <td style="width: 450px; height: 40px; border-width: 1px; border-color: #fff #fff #777 #fff; border-style: solid;"> </td> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Puesto:</strong></td> <td style="width: 450px; height: 40px; border-width: 1px; border-color: #fff #fff #777 #fff; border-style: solid;"> </td> </tr> <tr> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Firma:</strong></td> <td class="area-firma" style="width: 450px; height: 40px; background-color: #cccccc;" rowspan="2"> </td> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle; padding-left: 30px;"><strong>Firma:</strong></td> <td class="area-firma" style="width: 450px; height: 40px; background-color: #cccccc;" rowspan="2"> </td> </tr> <tr> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle;"> </td> <td style="width: 150px; height: 40px; border-color: #ffffff; text-align: left; vertical-align: middle;"> </td> </tr> </tbody> </table> ya intente agregando clases, por ejemplo: @media print { .area-firmas { background-color: rgb(204, 204, 204); } .separador-rojo { background-color: rgb(179, 4, 4); } } pero lo ignora. que puedo hacer?

All Replies (3)

more options

¡Hola David!

Por favor selecciona "Imprimir fondo (colores e imágenes)" si deseas que Firefox imprima los fondos de las páginas web como se detalla en https://support.mozilla.org/es/kb/Imprimir%20una%20p%C3%A1gina%20web#w_cambiar-la-configuraciahn-de-la-paagina

Dinos si esto resuelve tu pregunta.

¡Gracias!

more options

Tengo la opción seleccionada, aun asi, me es imposible visualizar los colores de tablas.

Alguna otra opción?

more options

¡Hola David!

¿Cuál es la URL de la página?

¿Qué software utilizas para imprimir a .pdf?

¡Gracias!