如果CSS 屬性名稱中有 - (例如background-color),你可以用 [] 的語法,或將屬性 ... 將背景顏色改為紅色 foo.style['background-color'] = '#f00'; ...
確定! 回上一頁