对元素scale缩放时,滚动只能看到放大后右下方的内容.

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

</head>

<body>

<div style="width: 970px;height: 651px;overflow: auto">

    <img style="display: block;transform: scale(1.5)" src="https://cloud.githubusercontent.com/assets/6072743/26030200/1ca3370a-387e-11e7-9c6d-8d1b029c90cc.png">

</div>

</body>

</html>

左上角的缩放后的内容就看不到了。除了transfrom-origin设置为left top,请问还有什么办法吗。

鸿蒙传说
浏览 772回答 1
1回答

撒科打诨

transform-origin:&nbsp;0&nbsp;0;
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript