gooè¾æ¸ã¯ç¡æã§ä½¿ããè¾æ¸ã»è¾å ¸ã®æ¤ç´¢ãµã¼ãã¹ã§ãã1999å¹´ã«ãã¼ã¿ã«ãµã¤ãåã®è¾æ¸ãµã¼ãã¹ã¨ãã¦æä¾ãéå§ãã¾ãããåºç社ã«ããä¿¡é ¼æ§ã®é«ãèªå¦è¾å ¸ï¼å½èªè¾æ¸ãè±åè¾æ¸ãåè±è¾æ¸ãé¡èªè¾æ¸ãååçèªãæ¼¢åãªã©ï¼ã¨å¤ç¨®å¤æ§ãªå°éç¨èªéãé ä¿¡ãã¦ãã¾ãããã¹ã¦ã®è¾æ¸ãã¾ã¨ãã¦æ¤ç´¢ããã横ææ¤ç´¢ãã¨ç¹å®ã®è¾æ¸ãæ¤ç´¢ãããåå¥æ¤ç´¢ããå¯è½ã§ããå½èªè¾æ¸ã§ã¯ãã¥ã¼ã¹è¨äºãé空æ庫ã§ã®è¨èã®ä½¿ç¨ä¾ã確èªã§ãã使ãæ¹ãåãããªãæã«ä¾¿å©ã§ãã
getComputedStyle ã¨ã¯ï¼ï¼ ããè¦ç´ ã«ã©ããªã¹ã¿ã¤ã«ãå½ãã£ã¦ããããè¨ç®ãã¦ãããã便å©ãªé¢æ°ã 使ãããã¯ãã£ã¡ãç°¡åï¼ var style = getComputedStyle(element, ''); alert(style.fontSize); // 14px alert(style.color); // rgb(0, 0, 0) ã¡ãªã¿ã«ç¬¬äºå¼æ°ã¯çä¼¼è¦ç´ ã® style ãåãããå ´åã«ä½¿ãã¾ããé常ã¯ç©ºæååã§ããã ã§ãã getComputedStyle ã¯ãã®ã¾ã¾ã§ã¯ IE, Safari ã§ã¯åããªãã Safari ã§ã¯ window(ã°ãã¼ãã«é å) ã« getComputedStyle ã¯å®ç¾©ããã¦ãªãã¦ã document.defaultView ã ãã« getComputedStyle ãå®ç¾©ããã¦ããã ã¡ãªã¿ã«ã Firefox, Op
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}