function getSitePallete(Selector) {
var Selectors = document.styleSheets[8].rules;
var pallete = new Array();
for (var i = 0; i < Selectors.length; i++) {
for (var j = 0; j < Selectors[i].style.length; j++) {
if (Selectors[i].style[j] == "color")
// here i want the value of color property (like if color : #ffffff so i want #ffffff )
}
}
}
我想访问颜色属性的值。如何访问它?