chrome extension: how to insert sidebar via iframe in content?

自古美人都是妖i 提交于 2019-12-23 04:29:24

问题


I want to add a vertical side bar on the left side of the current page by injecting an iframe via chrome extension I'm building.

How can I achieve this in a way that it is consistent on any web page, like the sidebar won't end up overlapping the current page and etc. I want to make sure that the page gets pushed to the side to make room for the side bar.

I also don't want the content of the sidebar to be affected by the css styling on the current page, so I'm thinking of putting it inside an iframe.

来源:https://stackoverflow.com/questions/26224640/chrome-extension-how-to-insert-sidebar-via-iframe-in-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!