开发者

scaling map/area with css, mobile web

Is it possible to scale map/area el开发者_Go百科ements with pure css in at least, one mobile browser?

no javascript!


Surprisingly, the answer might be yes, with css transforms:

img {
  -webkit-transform: scale(3, 3);
  -webkit-transform-origin: top left;
}

In Webkit desktop the map and areas get scaled along the image, I'd expect the same to be true of Webkit on mobile browsers.

Check it out here: http://jsfiddle.net/q8hC2/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜