Scale of scale on site



  • There's a site that needs to be added to the button, where the CTRL + NUM'+ would be simulated, up to 120% of the initial size. Is it possible to do so and what ways? (I don't exactly know which mark this issue is, as I have little idea about web-e)



  • Try this one:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <title></title>
    
    &lt;style&gt;
        .zoom {
            zoom: 1.2;
            -moz-transform: scale(1.2);
            -moz-transform-origin: 0 0;
        }
    &lt;/style&gt;
    

    </head>
    <body>
    <button id="zoom">Zoom</button>

    &lt;script&gt;
        document.querySelector('#zoom').addEventListener('click', function(e) {
            document.body.className += ' zoom';
        });
    &lt;/script&gt;
    

    </body>
    </html>




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2