【】【】【】
【】【】
<html> <head> <style> div { width: 200px; height: 100px; background-color: yellow; /* Rotate div */ -ms-transform: rotate(7deg); /* IE 9 */ -webkit-transform: rotate(7deg); /* Chrome, Safari, Opera */ transform: rotate(7deg); } </style> </head> <body>
<div>Hello</div> <br>
-----------
---------
var orientation, img = new Image(); img.onload = function () { if (img.naturalWidth > img.naturalHeight) { orientation = 'landscape'; } else if (img.naturalWidth < img.naturalHeight) { orientation = 'portrait'; } else { orientation = 'even'; } } img.src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/130527/flower-300x259.jpg";
-------------
#profile-picture { -ms-transform: rotate(90deg); /* IE 9 */ -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ transform: rotate(90deg); }
-----------------------
----------
==========
(function() { var orientation, img = new Image(); img.onload = function () { if (img.naturalWidth > img.naturalHeight) { orientation = 'landscape'; } else if (img.naturalWidth < img.naturalHeight) { orientation = 'portrait'; } else { orientation = 'even'; } document.body.innerHTML += '
'; } img.src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/130527/flower-300x259.jpg"; })();
http://xlkezhan.com/wizard/uploads2/L0snGbKDtaBtCdv986Fwao8a5Z6ns3.jpg
-
--------- ------------------
【】【】【】
【】【】【】
【】【】
【】【】
<html>
<head>
<style>
div {
width: 200px;
height: 100px;
background-color: yellow;
/* Rotate div */
-ms-transform: rotate(7deg); /* IE 9 */
-webkit-transform: rotate(7deg); /* Chrome, Safari, Opera */
transform: rotate(7deg);
}
</style>
</head>
<body>
<div>Hello</div>
<br>
-----------
.rotate180 { -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); }---------
var orientation, img = new Image(); img.onload = function () { if (img.naturalWidth > img.naturalHeight) { orientation = 'landscape'; } else if (img.naturalWidth < img.naturalHeight) { orientation = 'portrait'; } else { orientation = 'even'; } } img.src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/130527/flower-300x259.jpg";
---------
-------------
#profile-picture {
-ms-transform: rotate(90deg); /* IE 9 */
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
transform: rotate(90deg);
}
-----------------------
----------
.class { image-orientation: 90deg; }==========
.rotate { -ms-transform: rotate(90deg); /* IE 9 */ -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ transform: rotate(90deg); margin-top: 88px; }==========
(function() { var orientation, img = new Image(); img.onload = function () { if (img.naturalWidth > img.naturalHeight) { orientation = 'landscape'; } else if (img.naturalWidth < img.naturalHeight) { orientation = 'portrait'; } else { orientation = 'even'; } document.body.innerHTML += '
' + orientation + ''; } img.src = "https://s3-us-west-2.amazonaws.com/s.cdpn.io/130527/flower-300x259.jpg"; })();
http://xlkezhan.com/wizard/uploads2/L0snGbKDtaBtCdv986Fwao8a5Z6ns3.jpg
-
--------- ------------------