Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ååã®è¨äºãWebãã¶ã¤ã³ã®åèã«ãããéã³å¿ããµããããã¼ã¸ãããããã¿ã³9åãã«ãªãã£ã¦ãjQueryã¨CSS3ã¢ãã¡ã¼ã·ã§ã³ã使ã£ã¦éã³å¿ããµããä½åº¦ãã¯ãªãã¯ããããªãããã¼ã¸ãããããã¿ã³ä½æãã¦ã¿ã¾ããã Ninjaãã¼ã¸ããããã¿ã³ããã¯ãã¼ã¯ãã¼ã¨ã¹ã¯ãã¼ã«ã¢ãã¡ã¼ã·ã§ã³ãæ´»ããããã¼ã¸ããããã¿ã³ã«ãã¦ã¿ã¾ããããµã³ãã«ãã¼ã¸ãã覧ãã ããã ãµã³ãã«ãã¼ã¸ » å¿è ç»å ´ã¯CSSã¹ãã©ã¤ãã¢ãã¡ã¼ã·ã§ã³ã³ãéãã§ã¢ãã¡ã¼ã·ã§ã³ãããããã1æã®PNGç»åã«32pxÃ32pxã®çµµã10å並ã¹ã¾ããããã¦ã¹ãªã¼ãã¼ããæã«ãX軸æ¹åã«-32pxãã¤èæ¯ç»åãããããã¨ã§ã¢ãã¡ã¼ã·ã§ã³ãã¦ããããã«è¦ãã¾ãã .ninja{ display:block; width:32px; height:32px; background:url(images/ninja.png) no-r
追è¨ï¼2014/07/04æ¬çªç°å¢ã§æãæ°ãããã¼ã¸ã§ã³ã®jQueryãjquery-latest.jsããèªã¿è¾¼ãã®ã¯ããã¦ã»ããã¨jQueryã®å ¬å¼Blogã§ã¢ãã¦ã³ã¹ããã¦ããã¨ã®ãã¨ã§ãã以ä¸ãjQuery å ¬å¼ Blog ãjquery-latest.js ã使ç¨ããã®ããããããããã®å¼ç¨ã§ãã jQuery ã®ãã¼ã¸ã§ã³ã¢ããã®åº¦ã« Web ãµã¤ããåä½ããªããªãå±éºãã¦ã¼ã¶ã¼ã«ä¸ãã¦ããã ãã£ã¦ãã¨ãjQuery ã®éçºãã¼ã ã¯ãã¡ããäºææ§ãæ大éä¿ã¨ãã¨åªåã¯ãã¦ããã©ããããå®å ¨ã§ã¯ãªãã§ããã¨ãããã¨ã ãäºææ§ãå®å ¨ã§ãªãããâWebãµã¤ããåä½ããªããªãããããã£ã¦ããé çªã§è§£éããã¨ãããããã¨å人çã«æãã¾ããããjquery-latest.jsãã¯ä½¿ããªãã£ã¦ããæ¹åããããã§ããããããªãã»ã©ã§ãããããã¾ããã ã¨ããããã§ãä¸è¨å 容ã«ä¼´ã£ã¦è¨äºå 容ã
ç»åã®é·ã辺ã«åããã¦ããã£ãã Image Scaleã®ä½¿ãæ¹ Step 1: å¤é¨ãã¡ã¤ã« headå ã«jquery.jsã¨å½ã¹ã¯ãªãããå¤é¨ãã¡ã¤ã«ã¨ãã¦è¨è¿°ãã¾ãã <head> ... <script src="jquery.js" type="text/javascript"></script> <script src="image-scale.js" type="text/javascript"></script> </head> Step 2: HTML 大ããã調æ´ãããç»åã«ãclass=scaleããå ãã¾ãã <div class="image-container"> <img class="scale" src="img/example.jpg"> </div> ããã«ãç»åã®ä½ç½®ãªã©ãè¨å®ããå ´åã¯dataå±æ§ãå ãã¾ãã <div class="image-c
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}