📜  更改背景渐变 javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:24.997000             🧑  作者: Mango

代码示例1
var dom = document.getElementById('mainHolder');
dom.style.backgroundImage = '-moz-linear-gradient('+ orientation + ', ' + colorOne + ', ' + colorTwo + ')';