我正在开发一个全屏视频站点。当用户在智能手机中访问网站时,我想将页面定位改为景观模式。我尝试使用css媒体定位,但没有锻炼。
请帮助我使用javascript来处理这个问题。
发布于 2013-10-08 04:21:46
使用css旋转页面怎么样?
-webkit-transform:rotate(-90deg);
-moz-transform:rotate(-90deg);
-ms-transform:rotate(-90deg);
-o-transform:rotate(-90deg);
transform:rotate(-90deg);发布于 2013-10-08 04:09:18
您不能更改页面(您是指设备吗?)定向,您只能检测到它(然后相应地修改样式)。
发布于 2013-10-08 04:06:54
如果你想改变pdf的方向,请说
var pdf = new BytescoutPDF();
pdf.pageSetOrientation(BytescoutPDF.PORTRAIT); // BytescoutPDF.PORTRAIT = portrait, BytescoutPDF.LANDSCAPE = landscape
pdf.pageAdd();
pdf.textAdd(50, 50, 'Portrait page orientation', 0);
// add a page with landscape orientation
pdf.pageSetOrientation(BytescoutPDF.LANDSCAPE);
pdf.pageAdd();
pdf.textAdd(50, 50, 'Landscape page orientation', 0);
// return BytescoutPDF object instance
return pdf;https://stackoverflow.com/questions/19238862
复制相似问题