简体   繁体   中英

Set the gravity of an element when zooming?

I'm injecting an iframe into a webpage, to act as a toolbar for another element, but unfortunately the elements act weirdly when zooming. The toolbar seems to gravitate towards the topleft corner, and the element towards the top-center. This means when zooming in they go into each other, and when zooming out they go way too far apart. is there any way to set this gravity?

我希望看到一个jsfiddle,所以我确切地知道您想要什么,但是只使用固定位置即可。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM