問題タブ [margin-left]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - Insert DOM object into any webpage
I am trying to create an basic chrome extension that adds a toolbar to the left hand side of any webpage.
I am wanting to create space on the left hand side which I can then fill with DOM elements.
I create space using style.setProperty():
This creates space on the left hand side of most webpages but not all. I then try to add an element to the webpage:
This seems to add an element to the bottom of the webpage but has a few strange errors as well. In some webpages it will not show at the bottom, in some webpages it will create multiple times. I have almost not figured out how to move this into the left margin that I created for it.
I am currently calling the script to alter the page from an eventPage.js file:
And to finally get to my questions:
- Can you create objects inside a margin?
- How can you apply the CSS (moving the page to create left hand space) to the entirety of any webpage?
- How do you chose where to put the DOM object if you do not know what elements the page will have (because it is supposed to work on all)?
vba - ブレークポイントを適用する VBA エディターで灰色の余白が見つからない
VBA エディターでブレークポイントを適用するマージンを何とか絞りました。ショートカット キーを使用してブレークポイントを適用することはできますが、コードの左側に灰色の余白が表示されないため、コントロールをドラッグせずに前の行にスクロールすることはできません。