jQueryã®position()ã¯è¦ç´ ã®ä½ç½®ãåå¾ããã¡ã½ããã§ãããoffset()ã¨æ··åããã¡ã§ããã offset()ã¯ããã¥ã¡ã³ãã®å·¦ä¸ãèµ·ç¹ã«ãã¦ããã®ã«å¯¾ããposition()ã¯ãªãã»ããã®ç¸å¯¾é¢ä¿ã®ãã親è¦ç´ ãèµ·ç¹ã«ãã¦ãã¾ãã 絶対ä½ç½®ã¨ç¸å¯¾ä½ç½®ã®éãã§ããã åãè¦ç´ å ã«å¥ã®è¦ç´ ãé ç½®ããå ´åã¯position()ã便å©ã§ãããã åèï¼jQueryã®offset()ã§è¡¨ç¤ºä½ç½®ã®åå¾ã¨è¦ç´ ã®ç§»å position() ã®åºæ¬ position()ã®ä½¿ãæ¹ãè¦ãåã«ãposition()ãã©ããåºæºã«ä½ç½®ãåå¾ãã¦ãããè¦ã¦ã¿ã¾ãããã position() ã®èµ·ç¹ position()ã¯ä»¥ä¸ã®ããã«è¦ªè¦ç´ ã®å·¦ä¸ãèµ·ç¹ã«ãã¦ãã¾ãã offset()ã¨éã£ã¦ãèªè¦ç´ ã¨é¢ä¿ã®ãã親è¦ç´ ãèµ·ç¹ã¨ãªã£ã¦ãã¾ãã
{{#tags}}- {{label}}
{{/tags}}