开发者

Need some help positioning a cloned, transformed div - (jsfiddle included)

开发者 https://www.devze.com 2023-03-08 04:17 出处:网络
http://jsfiddle.net/xKuwR/ I want the small clone to sit nicely within the overview div. The goal is to be able to put the overview div anywhere I want, with any position开发者_如何转开发ing (fixed,

http://jsfiddle.net/xKuwR/

I want the small clone to sit nicely within the overview div. The goal is to be able to put the overview div anywhere I want, with any position开发者_如何转开发ing (fixed, relative, etc) and have it work.

Thanks for any help.


Not entirely sure what you're after, but I think using -transform-origin will help:

-webkit-transform-origin: 0 0;

With position: fixed (as you had it): http://jsfiddle.net/xKuwR/5/
With position: relative: http://jsfiddle.net/xKuwR/6/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号