简体   繁体   English

我们可以旋转页面吗?

[英]Can We Rotate Page?

I am not sure but there are many unbelievable things getting done each day. 我不确定,但是每天都有很多不可思议的事情要做。

So my question is that can we rotate a generated page with 90 degrees like how we do this in pdf using either php or JavaScript? 所以我的问题是,是否可以像生成pdf文件一样使用php或JavaScript将生成的页面旋转90度?

this should be possible with css3. css3应该可以做到这一点。 see google sideways 看到谷歌横盘整理

While this is for printing, you should definitely use Paged Media rules from CSS 3 : 虽然这是用于打印,但您绝对应该使用CSS 3中的Paged Media规则:

@page { 
  size: landscape; 
}

More information here . 更多信息在这里 I know this is not supported by all the browsers, but this is the easiest option to print what you want. 我知道并非所有浏览器都支持此功能,但这是打印所需内容的最简单选项。 Another option would be to convert XHTML to PDF using DOMPDF which is under active development. 另一个选择是使用正在开发的DOMPDF将XHTML转换为PDF。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM