javascript - Tranform.Rotate css for print window not working ? JS -


i want print data in 90 degree cheque transform.rotate css style not working here html

   <div id="content">         <div id="dvref"  class="divsquare">1</div>         <div  id ="dvdate"  class="divsquare">2</div>         <div style='clear:both'></div>         <div id="dvwords" class="divsquare">3</div>         <div id="dvamount" class="divsquare">4</div>   </div> 

js print window

        var win = window.open('', 'printwindow','height=600,width=800');         var str = '<html><head><title> alflah</title>';         str = str + '<style> #content  {     position: relative;   top: 90px;   -webkit-transform: rotate(90deg);  -moz-transform: rotate(90deg);  -o-transform: rotate(90deg);   -ms-transform: rotate(90deg);  transform: rotate(90deg);    }      div#dvamount { position: relative;  left: 218px; } .divsquare{     width:20%; height:10px; margin:4px;  float: left  } div#dvdate {  left: 218px;   position: relative;   top: -16px;  }  </style>';         str = str + '   </head>';         $(win.document.head).html(str);         $(win.document.body).html('<body>' + $("#content").html() + '</body></html>');          win.document.close();         win.focus(); // necessary ie >= 10         win.print();         win.close(); 

my css top , alignment work need transform.rotate working not working idea.i adding js fiddle link

link problem js fiddle


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -