
本文共 1668 字,大约阅读时间需要 5 分钟。
���������������������������������������������
���������������������������������������������������css���������������������������������������������������������������������������������������������������������������������������������
css������������������������������������������������������������������������������style������������������������������������������������������link���������@import���������������������������������������������������������������������������������
���������������������������������������������window.getComputedStyle��������������������������������������������������������� syntax������
document.getElementById('elemntId', window.getComputedStyle(element, null)[attribute]);
���������������������getComputedStyle���������������������������������������������������������������
getComputedStyle(document.getElementById('myId'), 'padding');
������������������������������������������������object.style������������������������������������������������������������������������������������������������������������������������������������������������������������������getComputedStyle���������
������������������������������������������������������������
function getStyle(domobj, attr) { if (window.getComputedStyle) { return getComputedStyle(domobj, null)[attr]; } return domobj.currentStyle[attr]; }
������������������������������������getComputedStyle���������������������������������������������������������������������������������������������domobj.currentStyle������������������������������
��������������������������������������������������������������������������������������������������������� debugging���������������������������������������
发表评论
最新留言
关于作者
