问题
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