JavaScript 에서 style 속성 구하기


Javascript 로 지정한 style 의 경우 구하는 예
element.style["fontSize"]

IE 의 경우 구하는 예
element.currentStyle["fontSize"]

FF 의 경우 구하는 예
document.defaultView.getComputedStyle(element, "").getPropertyValue("font-size")


참고: IE 의 경우 filter 값을 구하는 방법의 예.
element.filters.item("alpha").opacity

Posted by 아즈키

2008/05/21 10:57 2008/05/21 10:57
Response
No Trackback , No Comment
RSS :
http://dev.azki.org/rss/response/4

Trackback URL : http://dev.azki.org/trackback/4

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 5 : 6 : 7 : 8 : 9 : 10 : 11 : 12 : 13 : ... 21 : Next »