顺时针或逆时针旋转网页 [英] Rotate a webpage clockwise or anticlockwise

查看:194
本文介绍了顺时针或逆时针旋转网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让用户选择旋转我的网页内容,包括图片,文字和div。这可能吗?

I want to give user the option to rotate the content of my webpage, including images, text and divs. Is this possible?

PS:

我想要旋转整个网页。不只是一个容器div。

I want to rotate the entire webpage. Not just a container div.

推荐答案

你可以使用CSS3

-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);   

http://jsfiddle.net/KdNNy/1/

但不适用于所有浏览器。此示例仅适用于firefox和chrome / safari。歌剧也应该拥有它。也许甚至是IE

Doesn't work on all browsers though. This example is only for firefox and chrome/safari. Opera should have it as well. Maybe even IE

编辑

以防万一有人认为哦他是只需旋转DIV!,请检查

And just in case anyone thinks "oh he's just rotating a DIV!", check this

http:// jsbin.com/utupu5/ (整页)

这篇关于顺时针或逆时针旋转网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆