Using CSS transform scale() to zoom into an element without cropping, maintaining scrolling
问题 Live example: https://jsfiddle.net/b8vLg0ny/ It's possible to use the CSS scale and translate functions to zoom into element. Take this example, of 4 boxes in a 2x2 grid. HTML: <div id="container"> <div id="zoom-container"> <div class="box red">A</div> <div class="box blue">B</div> <div class="box green">C</div> <div class="box black">D</div> </div> </div> CSS: * { margin: 0; } body, html { height: 100%; } #container { height: 100%; width: 50%; margin: 0 auto; } #zoom-container { height: 100%