简体   繁体   English

设置缩放时元素的重力?

[英]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. 我正在将iframe注入网页中,以充当其他元素的工具栏,但是不幸的是,缩放时这些元素的行为很奇怪。 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,所以我确切地知道您想要什么,但是只使用固定位置即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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