js 获取里面的svgmjx-container class=MathJax CtxtMenu_Attached_0 jax=SVG tabindex=0 ctxtmenu_counter=97 style=position relative;svg xmlns=httpwwww3org2000svg width=11893ex height=2072ex role=img focusable=f
要使用JavaScript获取该svg元素,可以使用document.querySelector方法和CSS选择器来选择该元素。例如,可以使用以下代码获取该svg元素:
const svgElement = document.querySelector('mjx-container svg');
然后,您可以使用svgElement变量来访问和操作该svg元素的属性和方法。
原文地址: https://www.cveoy.top/t/topic/ikUr 著作权归作者所有。请勿转载和采集!