Perfect horizontal AND vertical centering in CSS, at any width or height! Works with percentage based width/height, min-/max- width, images, position...
Lots of us frontend developers seem to be increasingly concerned with interacting with the DOM lately, during a time when JavaScript engines and browser rendering performance has been faster than ever! In this article I will try to douse a few myths about DOM interaction in foam, whilst giving a few little performance tips to make sure your apps run super fast when you're interacting with the DOM.
ããã°ã«ã¦ 6æ¥éã«æ¸¡ããWordPress æ¡å¼µæ©è½ã®å®è£ ä¾ãç´¹ä»ããªãããããã¯ã®åä½ãå é¨ APIãããã¦ãããã骨çµã¿ããæ¹æ³ã解説ãã¦ãã¾ããã ãã®ãã¼ã¸ã¯æå¾ã®ã¾ã¨ãã¨ç®æ¬¡ã¨ãªãã¾ãã é£è¼ã¯ããã°è¨äºã¨ãã¦ã²ã¨ããã§æ¸ãããã®ã§ãæ¬æ¥ã§ããã°ãããã沢山ã®ãªã©ã¤ãããããã¨ããã§ãããã¾ãã¯ä¸åº¦ãããªãã·ã¥ãã¦ããã¾ãããæ¸ã足ããªãé¨åãä¸è¦ãªã®ã£ã°(!)ãè¨èãã½ã¼ã¹ã³ã¼ãã®æºããè¦ããã¾ãããæ¨æ²ã¯å¥ãªæ©ä¼ã«ã¨ãããã¨ã§ã©ããã許ããã ããã ã¯ããã« WordPress ã使ã£ããµã¤ãæ§ç¯ã®ææ³ã®ä¸ã§å¿ è¦ã¨ãªã£ã¦ãããããã¯ãå é¨ API ãªã©ãç¨ããæ©è½ã®æ¡å¼µæ¹æ³ã¨ããã®ããã°ã©ã ã®æ§ææ¹æ³ã解説ãã¾ãã ç´¹ä»ãã¦ãããµã³ãã«ã½ã¼ã¹ã³ã¼ã㯠WordPress ã®ãã©ã°ã¤ã³å½¢å¼ããããã¯ãã¼ãã® functions.php ã®åæ¹ã§ä½¿ããã¨ãã§ãã¾ããã¤ã¾ãå 容ã¯
ããã¹ãã§å®è£ ããè¦åºããªã©ãç»åã«ç½®æãããã¯ããã¯ã§ã-9999pxããæåã§ããããã®ããã©ã¼ãã³ã¹ãæ¹åãããã¯ããã¯ãç´¹ä»ãã¾ãã Replacing the -9999px hack (new image replacement) [ad#ad-2] ç»åç½®æï¼-9999px æ¹åãããã¯ãã㯠ç»åç½®æï¼-9999px -9999pxã使ã£ãç»åç½®æã®ãã¯ããã¯ã¯ãä¸è¨ã®ããã«ãªãã¾ãã HTMLã¯è¦åºãè¦ç´ ã§å®è£ ãã¾ãã HTML <h3 id="sample06">è¦åºãã®ããã¹ã</h3> ãtext-indent:-9999px;ãã§ããã¹ããè¦ããªãä½ç½®ã«ããè¦åºãã¨ãªãç»åãèæ¯ç»åã¨ãã¦è¡¨ç¤ºãã¾ãã #sample06{ width:300px; height:50px; background:url('bg-01.gif') no-repeat 0 -250p
Mac OS X Lionã§abãå®è¡ããéã«ã¨ã©ã¼ï¼Connection reset by peerãçºçããéã®å¯¾å¦æ¹æ³ æ¬æ¥ããã³ããã¼ã¯ãåããã¨abãå®è¡ããããApache Benchãåãã¦ãã¾ããã§ããã ããã¯ãã©ã¤ãªã³ã«å梱ããã¦ããApacheã½ããã¦ã§ã¢ã®ãã°ã®ããã§ãã abãã¢ãããã¼ãããã¨ç¡äºã«å®è¡ã§ããããã«ãªãã¾ããã®ã§ã対å¦æ¹æ³ãã¡ã¢ãã¦ããã¾ãã æ®éã«abãå®è¡ããã¨ä»¥ä¸ã®ã¨ã©ã¼ãåºã¦æ¥ã¾ãã apr_socket_recv: Connection reset by peer (54) ãã¼ããè¬ã®ã¨ã©ã¼ã§ããabãã¢ãããã¼ããã¦ã¿ã¾ãããã 対å¿æ¹æ³ 1.Apacheã®ææ°ãã¼ã¸ã§ã³ããã¦ã³ãã¼ã $ wget http://apache.mirrors.pair.com/httpd/httpd-2.4.2.tar.bz2 â»2.4.2ãå©ç¨ã§
å¿ è¦ãªãã©ããã ã㢠jQueryã§ãã©ã¼ã ã®å¤ãåå¾ããæ¹æ³ãã¾ã¨ã â jsdo.it â Share JavaScript, HTML5 and CSS jQueryã§ãã©ã¼ã ã®å¤ãåå¾ããæ¹æ³ãã¾ã¨ã â jsdo.it â share JavaScript, HTML5 and CSS å ±éï¼è¦ç´ ã®æ¢ãæ¹ inputè¦ç´ ãªããã«idæ¯ã£ã¡ããã®ãä¸çªãªãã ãã©ãå±æ§ã»ã¬ã¯ã¿ã¼ã使ãã¨æ¥½ãªå ´åãããã¾ããã¤ã¾ã[name=xxx]ã§æ¤ç´¢ããããæ¹ã <form id="my-form"> <input type="text" name="my-text" value="This is text." /> </form>
é常ããã¼ãããè¦ç´ ã¨ããã©ã«ãã®ææ¸ããã¼ã§é ç½®ãããè¦ç´ ã¯éãªãã¾ããCSS 2.1ä»æ§æ¸ã®ããã¼ãã®è§£èª¬ã«ããå³Dããã®ä¾ã§ãããªã®ã§ãé常ããã¼ãããè¦ç´ ã«ç¶ããªã¹ãã¯ãã®ãã¬ãã(ãæ°åç)ãããã¼ãããè¦ç´ ã®ä¸ã«é ãã¦ãã¾ãã¾ãããã®æåã«ã¯çµæ§å°ãããããã¨ãå¤ãã§ãããå®ã¯overflow: autoã¨ããã¨ç°¡åã«åé¿ã§ãã¾ãã Demo: ul after floated element ãã¢ã®ããã«ãªã¹ãã«overflow: autoããã ãã§ããã¬ã¤ã«ãªã¹ããé ç½®ãããããã«ãªãã¾ããoverflow: autoã使ã£ãå ´åã¨ä½¿ããªãã£ãå ´åã§ã©ãéãªãã«éããåºãããããããã«ãoutlineããããã£ã¼ã§ãã³ã¯ã®ç·ãå¼ãã¦ããã¾ããã ããã¯ãã©ã¦ã¶ã®æåããã¾ãã¾ãããªã£ãã¨ãããã¨ã§ã¯ãªããå®ã«ããæ°ãªãCSS 2.1ä»æ§æ¸ã«ãè¨è¿°ãããã¾ãã The bor
2011å¹´07æ23æ¥13:15 ã«ãã´ãªTipsiTech tips - Lion - Recovery HD ã¨ãã®å½±é¿ ãªãããã¤ã¾ã§ãã¦ããããè¨äºãæ¸ãã¦ããã®ããã¦ãããå¿ããªããã¡ã«æ¸ãã¦ããããã®ã§ã Lionããªã«ããªã¼ãã¼ãã£ã·ã§ã³ãé£ãã¦ãã OS X v10.7 Lion ã§å ãã£ãæ°æ©è½ã®ä¸ã¤ãããªã«ããªã¼ãã¼ãã£ã·ã§ã³ãããã650MBã ããOSã®åã¤ã³ã¹ãã¼ã«ã«ã¨ã©ã¾ãããTime Machineããã®å¾©æ§ãªã©ãä»ã¾ã§ã®ãªã¹ãã¢DVD/USBã¡ã¢ãªã¼ã«åºæ¥ããã¨ããã¹ã¦åºæ¥ãä¸ã«Safariã¾ã§ã¤ãã¦ããã®ã§ã復æ§æ¹æ³ã調ã¹ãã人ã«å°ããããããã¨ãåºæ¥ãåªããã®ãããWintel Notebook ã«ã¤ãã¦ããããªã«ããªã¼ããåºæ¥ãªãããã¼ãã£ã·ã§ã³ã¨ã¯å¤©ã¨å°ã®å·®ãããã ã¨ã¯ãããå®ç§ã«ãä»ã¾ã§ã¨åããã¨ããããã«ã¯è¡ããªãã®ã§ãããã¾ã§è¦ã¤ãã注æç¹ãã
WordPress ã§ä½¿ç¨å¯è½ãªã·ã§ã¼ãã³ã¼ãã¯ãã°ãã¼ãã«å¤æ° $shortcode_tags ã«ä¿åããã¦ãã $shortcode_tags ã¯ããã¼ãã·ã§ã¼ãã³ã¼ãåãããªã¥ã¼ãã·ã§ã¼ãã³ã¼ããè¨è¼ãããæã«å¼ã³åºãããã³ã¼ã«ããã¯é¢æ°ã ä¸è¦§ã¯ã以ä¸ã®ã³ã¼ãã§åå¾å¯è½ã global $shortcode_tags; $tagnames = array_keys($shortcode_tags);
WordPress ããã«ããµã¤ãåãããã¨ãã¦ããã£ãã®ã§ã¡ã¢ã 以ä¸ã®ç¶æ ã¨åãã«ãªã£ã¦ãã¾ã£ãã ãã«ããµã¤ãã®è¨å®ãè¡ã£ãå¾ã«ããã¼ã¿ãã¼ã¹ã®ãã§ãã¯ã¨å¾©å ãè¦æ±ããã å®è¡ããã¨ã以ä¸ã®ãã¼ãã«ããªãã¨è¨ããã¦ãã¾ãã wp_1_posts: Table âwordpress_db.wp_1_postsâ doesnât exist wp_1_comments: Table âwordpress_db.wp_1_commentsâ doesnât exist wp_1_links: Table âwordpress_db.wp_1_linksâ doesnât exist wp_1_options: Table âwordpress_db.wp_1_optionsâ doesnât exist wp_1_postmeta: Table âwordpress_db.wp_1_pos
Webãã¼ã¸ã¬ã¤ã¢ã¦ããããã²ã¼ã·ã§ã³ãã©ã°ã¤ã³ããã©ã¼ã ãã¹ã©ã¤ãã¼ï¼ã«ã«ã¼ã»ã«ãã©ã°ã¤ã³ããã£ã¼ãï¼ã°ã©ããã©ã°ã¤ã³ãã¤ã¡ã¼ã¸ã¨ãã§ã¯ããã©ã°ã¤ã³ããããªãã©ã°ã¤ã³ãªã©ããã§ãã¯ãã¦ããããã§ããæµ·å¤ã«ã¸ã ãªã³ã©ã¤ã³ãµã¤ãã®å¶ä½ã¯ã¯ã¼ããã¬ã¹ã®ãã©ã°ã¤ã³ãå©ç¨ãã¦æ§ã ãªæ©è½ãä»ãå ãã¦å®æããããã¨ãã§ãã¾ãã2012å¹´ã®jQueryãã©ã°ã¤ã³ã¾ã¨ãã§ã¯ããã¶ã¤ã³ã®ä¸æ°ãåå¥ã®ã«ã¹ã¿ã ã«ã対å¿ããå½éçã§é åçãªãµã¤ãä½æã«å½¹ç«ã¤æ å ±ãç´¹ä»ãã¦ãã¾ãã
ãï¼ç©ºã容é7.66Gã¨ã⦠ãã¸ã§ãããããã ããï½ï¼ãªãã§ï½ï¼ï¼ï¼ ãããããã³ç§æå¼·ã®ã©ã¤ãªã³ããã®åããæªããªãã§ããã ã£ã¦ãã¨ã§MacBook Airã®ãã¤ã¨ããéå§ï¼ 以ä¸ã®AGENDAã®é çªã§èª¿ã¹ãªãããã£ã¦ããã¾ããã AGENDA åçãåç»ãé³æ¥½ãã¡ã¤ã«ãå¤ä»ãHDDã«ç§»å æªä½¿ç¨ã¢ããªã®åé¤ åé¤ã¢ããªã®æ®éª¸ãã¡ã¤ã«ã®åé¤ ä¸è¦ãªãã©ã³ãã®åé¤ iPhoneãªã©ã®ã¢ããªãå¤ä»ãHDD㸠iPhoneãªã©ã®BackupFileãå¤ä»ãHDD㸠ãã£ã¨å®¹éãå¿ è¦ãªäººã¯è¿½å ããã â»å¿ ãMacã®ããã¯ã¢ãããåã£ã¦ããèªå·±è²¬ä»»ã§è¡ãã¾ããã 1.  åçãåç»ãé³æ¥½ãã¡ã¤ã«ãå¤ä»ãHDD㸠ãã£ã±ãåçãåç»ãé³æ¥½ã£ã¦å®¹éã大ããã ã£ã¦ãã¨ã§ãããã¯å¤ä»ãHDDã¸ã MBAãè³¼å ¥ãã¦çã£å ã«è¡ã£ããã¨ã ã£ãã®ã§ãã®æç¹ã§ã¯å®¹éã®å¤åã¯ãªãã 以ä¸ã®è¨äºã§è©³ãã説æããã¦
ã¢ãã¤ã«ããããªã¼ã¨ã¯å¼ã¹ãªãããã»ã¼ãã¿é»ããªã³ã¬1å°ã§æäºã®æãã¢ã¦ããã¢ã大活èº!ãAmazonã¹ãã¤ã«SALEã
çãããSkypeã®ç»é¢å ±ææ©è½ä½¿ã£ã¦ã¾ãããããæ¥ãåã®Skypeã§ç»é¢å ±æãåºæ¥ãªããªãã¾ãããããã©ããããããªé話ããåºæ¥ã¾ãããå°ã£ãã ã§ããã¿ã¤ãã«ã§çãå ¨é¨è¨ã£ã¡ãã£ã¦ã¾ãããæçµçã«ã¯Skypeã®ãããã¡ã¤ã«ãã£ã¬ã¯ããªã«ããshared.xmlãæ¶ãããç´ã£ãããã§ããã shared.xmlã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã¨ãä»ã®ä¸å ·åã®å ´åã§ãã³ã¬ãåå ã§ãããã¨ãå¤ãã¿ãããªã®ã§ããæå ã®Skypeããããããªã£ãå ´åã¯æ¯éä¸åº¦è©¦ãã¦è¦ã¦ä¸ããã 以ä¸ãshared.xmlã®æ¶ãæ¹ãWindowsã»Macããããç°¡åã«æ¸ãã¦ã¿ã¾ãã Windowsã®å ´å Skypeãçµäºãã Windowsãã¼ + Rãã¼ãæ¼ã %APPDATA%\Skypeã¨å ¥åãEnterãæ¼ã shared.xmlããªãã¼ã ã¾ãã¯åé¤ãã Skypeãèµ·åãã ä¸å ·åç´ã£ã¦ããã£ãã¼ Macã®å ´å Sk
2011å¹´07æ21æ¥23:30 ã«ãã´ãªTipsiTech tips - Lionã®å¸ã声ããã°ããããã¾ããçç± ç åæ¥ãã ã¢ããã« - OS X Lion - Lionãæã«å ¥ããããMac App Storeã ãã§è³¼å ¥ã§ãã¾ãã MacãOS X Lionã«ã¢ããã°ã¬ã¼ãããæ¹æ³ã¯æ¥µãã¦ã·ã³ãã«ãMac App Storeã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦ãLionãè³¼å ¥ããã ãã§ããä¾¡æ ¼ã¯2,600åããã¨ã¯Macã«ã¾ããã¾ããããLionããã¦ã³ãã¼ãããããã«å¿ è¦ãªãã®ãããã£ã¦ãããã確èªãã¦ããã®ããå¿ããªãã ã¨ããããã§ç§ã(ä»ãæ§å¼ã®)Mac Book Air 3,2 ã¨(ãã£ã¨æ§å¼ã®)iMac 11,1 ãç ååããã®ã ãã©ãä¸ã¤å¼ã£ããã£ããã¨ãããã ãªãããå·å´ãã¡ã³ãã¾ããã£ã±ãªããªã®ã§ããã ç¹ã«MacBook Airãããããåããã¨ããæ» å¤ã«ãªãã®ã«ãã«å転ã
ããã°ãã¯å島ã§ãã ãªãã¨ãªãæµ®ããæ°åã«ãªãå¤ã§ãããMacã¦ã¼ã¶ã¼ã¯ãããã«æµ®ããæ°åã®ã¯ãã§ããä½ã®ãã¨ãã¨è¨ãã°ããMac OS X Lionãããªãªã¼ã¹ãããããããSnow Leopardãã®ãªãªã¼ã¹ãã2009å¹´8æ28æ¥ã ã£ãã®ã§ãLionã¯ç´2å¹´ã¶ãã®ã¡ã¸ã£ã¼ã¢ãããã¼ãã§ãã iPhoneãiPadã ã¨ãä¾ãé¨ãã§ãä»äºã®éå ·ã¨ãã¦Macããªãã¨ããã¨ãé²ã¾ãªããã¨ãå¤ããLionã®ç»å ´ãå¾ ã¡ãã³ã¦ããæ¹ãå¤ãã¯ãã§ãããããªæå¾ ã®Mac OS X Lionã§ãããæå¾ ã«è¸è¨ãã¾ãã¦ä½¿ã£ã¦ã¿ãã¨ãæä½æ§ã«éåæãæããé¨åããªãã§ããããï¼ããã®éåæã¯ãè¨å®ãå¤æ´ãããã¨ã§ã¹ãããªè§£æ¶ã§ããã®ã§ãäºä¾ã¨å¯¾è±¡æ¹æ³ããç´¹ä»ãã¾ãã ã¹ãããªãããæ¹ã¯ã以ä¸ã§ã
Finderçã®è¨å®ã«é¢ãã¦ã¯æ¢ã«æ å ±ããã£ãä¸ã«ã10.6ã®é ãè¨å®ã³ãã³ãããã®ã¾ã¾ä½¿ããã®ã§ç´ãçµãã£ãã®ã§ãããMagic Mouse 㨠Mission Control ã®è¨å®ã§è¦æ¦ãã¾ãããããã©ã«ãæ©è½ã ãã§ã¯ä½¿ãè¾ãã®ã§ãBetter Touch Toolï¼ä»¥å¾BTTï¼ãå ¥ããæ©è½ãæ¡å¼µãã¦ã®è¨å®ã§ããå¾ã§è¦è¿ããããã«ãè¨å®ãããã¨ãã¾ã¨ãã¦æ¸ãã¦ããã¾ãã ãã¦ã¹ ãã¤ã³ãã¨ã¯ãªã㯠éã¹ã¯ãã¼ã«ãæ§ä»æ§ã«ã ãã¼ã¸éãã¹ã¯ã¤ã ã1æ¬æã¾ãã¯2æ¬æãã«ãã¦ããã¬ãã¥ã¼.appçã§ãã¼ã¸ããããåä½ã1æ¬æã§ãFinderããã©ã¦ã¶çã®ããé²ãããæ»ããã2æ¬æã§æä½ã§ããããã«è¨å®ã ããã®è¨å®ã§2æ¬æãæå¹ã«ããããå ã 2æ¬æã¹ã¯ã¤ãã使ããã¦ãããµã¼ããã¼ãã£è£½ã¢ããªï¼Reederã¨ãï¼ã®ã¹ã¯ã¤ãæ©è½ã使ããããã«ãªãã¾ããã ãã«ã¹ã¯ãªã¼ã³ã¢ããªã±ã¼ã·ã§ã³éãã¹
ãã©ã¦ã¶ã®ãµã¤ãºãå¤æ´ãã¦ãããã«åããã¦ãé«ãããã©ãã©ã®ç»åãã°ãªããã«æ²¿ã£ã¦ééç¡ãé ç½®ããã¹ã¿ã¤ã«ã·ã¼ãã®ãã¯ããã¯ãç´¹ä»ãã¾ãã Seamless Responsive Photo Grid ãã¢ãã¼ã¸ [ad#ad-2] ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã ç»åãééç¡ãé ç½®ããå®è£ æ¹æ³ HTML HTMLã¯imgè¦ç´ ãsectionè¦ç´ ã§å å ããã·ã³ãã«ãªãã®ã§ãã <section id="photos"> <img src="images/dog-1.jpg" alt="Little doggie"> <img src="images/cat-1.jpg" alt="Little kittie"> ... </section> CSSããªãã«ããã¨ãimgè¦ç´ ã¯inline-blockãªã®ã§ãä¸è¨ã®ããã«é£ç¶ãã¦ä¸¦ã¶ã ãã§ãã ãã¢ãã¼ã¸ï¼CSSãªãã®è¡¨ç¤º ãããã£ãã¨
æ¥æ¬èªã§ã®Mac,iPhone,iPad,iPodãªã©Appleé¢é£ã®æ å ±ãµã¤ããMACãå®éå®å£ã®Blogã Macã«æããããæ§ã ãªæ å ±ãæ²è¼ãã¦ãã¾ãã OS X Lionã®Tipsãã¾ã¨ãã¾ããã Appleã®ãµãã¼ãæ å ±ã¸ã®ãªã³ã¯ãæ²è¼ãã¦ãã¾ãã é¢é£ã¨ã³ããªã¼ï¼åã¡ã¼ã«ã¼ã® OS X Lion 対å¿æ å ±ã®ã¾ã¨ããããã³ãªã³ã¯é ã»OS X Lion 10.7.3ãããiOS 5ã¨åãçµµæåãã¶ã¤ã³ã«å¤æ´ããã ã»OS X Lionã§iCloudãDropboxã®ããã«ã¯ã©ã¦ãåæãã©ã«ãã¨ãã¦ä½¿ç¨ããæ¹æ³ ã»iCloudã«ã¬ã³ãã¼ã®å©ç¨ãåæ¢ãã¦ãOS X Lionã®iCalã§åç¬å©ç¨ããæ¹æ³ ã»Appleã®ãMobileMeããããiCloudãã¸ã®ç§»è¡ã§MobileMeãµã¼ãã¹çµäºã¾ã§ç¶ç¶å©ç¨åºæ¥ããã®ã¨åºæ¥ãªããã® ã»OS X Lionã§Macã®ã¤ã³ã¿ã¼ãããå ±æãå èµ
FirefoxããGoogle ChromeãSafari辺ãã§ãã¤ã®éã«ããå®è£ ããããtextarea ã®ãªãµã¤ãºæ©è½ã¯ã¨ã¦ã便å©ã§è¯ããªã¼ã¨ã¯æã£ã¦ã¾ãããæ¢ãããæãæãã¾ãããã ãªã®ã§ãæ¢ããæ¹æ³ãã CSS3ã«ããã£ã½ãããããã£ãæãã®ã§ã1è¡æ¸ãã ãã§ãã textarea { resize: none; } ãããªæãã§ããã ããã¯ãã¦ã¼ã¶ã¼å´ã§è¦ç´ ã®ãªãµã¤ãºæ©è½ã許å¯ãããããªããã£ã¦ããããã£ãªã®ã§ãå¥ã«textareaã«éãããoverflowããããã£ã®å¤ãvisible以å¤ã®æå®ãæãå ´åã«ä½¿ã£ã¦ãããæãã§ãã ããã ãã ã¨ãå¯ããã®ã§ã¨ã³ããªã¼ã£ã½ãããããã«ã textarea以å¤ã«ä½¿ãã¨ããããããããã¼ã¸ã®æ°çæ å ±ã¿ãããªã®ã§æã è¦ããé«ãåºå®ã㦠overflow: auto; ã¨ãã§ã¹ã¯ãã¼ã«ãã¼åºãã¦ãå ´åã¨ãã«ä½¿ã£ã¦ããã°ã¦ã¼ã¶ã¼å´ã§ãªãµã¤
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}