H
H
hashspark2012-12-03 09:35:55
JavaScript
hashspark, 2012-12-03 09:35:55

Change screen/window scale?

Good morning Habr.
The question arose how to programmatically change the scale of the visible part of the site?
Or as an alternative to emulate "Ctrl"+"+"/(-)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antelle, 2012-12-03
@Antelle

Set property in css:

$("body").css({ zoom: 2, transform: "scale(2)", transformOrigin: "0 0" })

S
Sergey Ozeransky, 2012-12-03
@KREGI

http://habrahabr.ru/qa/17029/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question