以SAP Spartacus這個Add 按鈕為例:
隻需要1行語句:
var computedStyle = getComputedStyle(document.getElementsByClassName(“button primary create”)[0], null).margin;
以SAP Spartacus這個Add 按鈕為例:
隻需要1行語句:
var computedStyle = getComputedStyle(document.getElementsByClassName(“button primary create”)[0], null).margin;