[Resolvido] Imprimir a página em paisagem(landscape)
Amigos estou tentando imprimir uma página em paisagem via self.print(); em um botão
pesquisei e encontrei este css mas na minha página não está funcionando, alguém ai sabe o por quê?
<style type="text/css" media="print">
@page land {size:landscape;}
</style>
fiz uma página de teste bem básica q tb naum está funcionando:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Teste</title>
<style type="text/css" media="print">
@page land {size:landscape;}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>aaaaaaaaaaaaaa bbbbbbbbbbbbbb ccccccccccc ddddddddddddd eeeeeee eeeeeee ffffffff gggggggg hhhhhhhh iiiiiiii ooo hhh hhh 9999 3333 555 ... 88</td>
</tr>
<tr>
<td><input type="button" name="button" id="button" value="Imprimir" onclick="self.print();"/></td>
</tr>
</table>
</body>
</html>Discussão (3)
Carregando comentários...