javascript - How get only the styles declared in a stylesheet's declaration and not the computed ones? -
if loop through document.stylesheets
find css rule matched .myclass
, more style values ones declared.
for example, css:
.myclass { border: none; }
i of these rules:
border: medium none borderbottom: medium none borderbottomcolor: -moz-use-text-color mozborderbottomcolors: none borderbottomstyle: none borderbottomwidth: medium bordercolor: -moz-use-text-color borderimage: none borderimagesource: none borderimageslice: 100% 100% 100% 100% borderimagewidth: 1 1 1 1 borderimageoutset: 0 0 0 0 borderimagerepeat: stretch stretch borderleft: medium none borderleftcolor: -moz-use-text-color mozborderleftcolors: none borderleftstyle: none borderleftwidth: medium borderright: medium none borderrightcolor: -moz-use-text-color mozborderrightcolors: none borderrightstyle: none borderrightwidth: medium borderstyle: none bordertop: medium none bordertopcolor: -moz-use-text-color mozbordertopcolors: none bordertopstyle: none bordertopwidth: medium borderwidth: medium color: rgb(200, 200, 200) mozborderimage: none
how find rule set in stylesheet?
Comments
Post a Comment