html中:
<a href="#main" id='navbar_home' class='icon home' onClick=""></a>
js中:
var navbara=document.getElementById("XX");
window.getComputedStyle(navbara, ':before').getPropertyValue('background-image');
html中:
<a href="#main" id='navbar_home' class='icon home' onClick=""></a>
js中:
var navbara=document.getElementById("XX");
window.getComputedStyle(navbara, ':before').getPropertyValue('background-image');