I have the following code:
<html> <body> <button type="button" style="background-color: lightblue;" onclick="makeGraph();">Make Graph</button> <button type="button">Save Image</button> <svg width="800" height="600"></svg> </body> </html>
This gives a blank area, followed by my buttons. I click the first button and it draws my graph. (That code is defined in a function in the head.)
If I comment out the svg, the buttons show up where I expect. I'm looking for something like an offset to move the svg down the page, so the buttons are on top. I thought maybe translate would do that, but no luck.
How can I get the svg AFTER the buttons in the display?
https://stackoverflow.com/questions/66913306/buttons-are-not-showing-up-before-svg-object April 02, 2021 at 09:07AM
没有评论:
发表评论