Home > Article > Create css of resizing iframe content

Create css of resizing iframe content


 var s = [];
 s.push("zoom: 0.2");
 s.push("-moz-transform: scale(0.2, 0.2)");
 s.push("-webkit-transform: scale(0.2, 0.2)");
 s.push("-o-transform: scale(0.2, 0.2)");
 s.push("-ms-transform: scale(0.2, 0.2)");
 s.push("transform: scale(0.2, 0.2)");
 s.push("-moz-transform-origin: top left");
 s.push("-webkit-transform-origin: top left");
 s.push("-o-transform-origin: top left");
 s.push("-ms-transform-origin: top left");
 s.push("transform-origin: top left");

 var css = s.join(";");

Advertisements
Categories: Article
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: