æçµæ´æ°æ¥ Sun, 19 Apr 2009 20:27:25 +0900 æå¾ã®ã³ã¡ã³ã Mon, 14 Jul 2014 08:14:00 +0900 ããã¯ãã¼ã¯ å æ¥éå¬ããããKanasan.JS JavaScript第äºçèªæ¸ä¼#7ã®ã¬ãã¼ãã§ãã ä»åã¯CSSã¨ã¤ãã³ãå¦çã®å ¥éçå 容ã§ããã ãåå é ããçæ§ããããã¨ããããã¾ããã JavaScriptããCSSãæ±ã ããç¨é£ããã¯ãªãã®ã§ãç°¡åã«ã¾ã¨ãã¦ããã¾ãã ã¯ã¾ããã¡ãªäº Element.style.colorãªã©ãElement.style.ãã®ã¹ã¿ã¤ã«ãªãã¸ã§ã¯ãã§æä½åºæ¥ãã®ã¯ã ã¤ã³ã©ã¤ã³æå®ãããã¹ã¿ã¤ã«ã®ã¿ãªã®ã§æ°ãä»ããå¿ è¦ãããã¾ãã åãæåã®é ã¯ç¥ããã«ããééãã¦ããã®ã§ããããããç¥ã£ã¦ããã¨ç¡é§ã«æéã使ããªãã¦æ¸ãã¨æãã¾ãã <style> #foo { background-c
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
ã°ãã¼ãã«é åã«ä»¥ä¸ã®ä¸è¡ãæ¸ã <script> var currentScript = (function (e) { if(e.nodeName.toLowerCase() == 'script') return e; return arguments.callee(e.lastChild) })(document); alert(currentScript); </script>ãããããã¨ã§ãcurrentScript ã¯ãã® script è¦ç´ ãæãã ãã¡ãã説æ DOM ã¯æ§ç¯ãããã¨ãã«ãä¸ããé çªã«æ§ç¯ããããããã¦ãscript ã¿ã°ãããã¨ã script è¦ç´ ãæ§ç¯ãããã¨ã«ãã¹ã¯ãªãããå®è¡ããã ã¤ã¾ããã¹ã¯ãªãããå®è¡ãããã¨ã script è¦ç´ ã¯ä»ã¾ãã«ä½ãããã°ããã§ããããããããå¾ãã®è¦ç´ ãåå¨ããªããããã«ãã® script è¦ç´ ãå«ããã¹ã¦ã®è¦
â String#scrape ã©ãããåãã¯ããã ããscrAPI ã¯å¼·åã ããããããèªåãã¾ãã«å¾ æãã¦ãéå ·ã使ãããªããï¼ã¨ææ°è¾¼ãã§ããã ãã©ãã©ãã ã決æãã¦ããã®è¤éãªå¼æ°ã«æ¯åæ«æãã¡ãã£ã¦ãæ«æã¤ã¼ãã¡ãã£ã¨ä½¿ãããã ããªã®ã«ãã¼ã¶(Scrape)ç¨ã®ã¯ã©ã¹ãå®ç¾©ããã®ãé¢åãªãã ãããã¿ãããªè¨ã訳ãæ¯åèªåã«ãã¤ã¤ãçµå±ä½¿ãããªãã¦ãªãè³å ãã¨ãä¸ä»£ã®ãåããªãã ãã©ãã¾ãå®éå¼æ°ã«ç¡é§ã«è²ããªæ©è½ãè©°ãè¾¼ã¿éãã¦ãæã¯å¦ããªãããã¨ãããextractorã®srcã¨dstã¯ã©ãè¦ã¦ãç´æçã«éã ããgrepã¿ããã«ä½¿ãããã使ããªã1ã ãªãã¿ãããªæç´ããã¼ãã¦ããããããCSS3ãªgrepã¨ãã¦ä½¿ããã ãã§ããäºã«æ°ä»ãã¦ãYouãStringã¯ã©ã¹ã«å ¥ãã¡ãããªYOï¼ String#scrape ã®å®ç¾© require 'scrapi' class Strin
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
http://blog.labnotes.org/category/scrapi/ ruby ã§ã¹ã¯ã¬ã¤ãã³ã°ã㦠web ã®æ å ±ãåå¾ããã®ã«ã¯ãä»ã¾ã§æ£è¦è¡¨ç¾ã xpath ã§ãã£ã¦ãã®ã§ãããã¨é¢åã§ãããã§ããµã¨ scrAPI ã¨ããã¹ã¯ã¬ã¤ãã³ã°ãã¼ã«ããããç¥ã£ãã®ã§ããããããããªã便å©ããã ãã®ãã¼ã«ãããã使ãã¨ãCSS3 ãªã»ã¬ã¯ã¿ãè¨è¿°ãããã¨ã§ãè¦ç´ ãåå¾ãããã¨ãã§ãã¾ãããã¨ãã°ã¨ãããµã¤ãã®ãªã³ã¯ãå ¨é¨åå¾ããããã°ã require 'rubygems' require 'scrapi' require 'open-uri' require 'nkf' require 'pp' $KCODE = 'u' links = Scraper.define do process "a[href]", "urls[]"=>"@href" result :urls e
ç§ã餡åã®ãããªãéç«ã¡ã ã£ã¦ãã¾ããã ããããã¦ããã é£ã¹ããã¨æã£ããé£ã¹ããã®ã§ããã ãããåã«ãªãã©ã«ãã¢ã®çç°èã§ãããã¨ãç§ãããã¿ã¤ãé£ã¹ããã¨æãã°ãããã¿ã¤ã¯ä»ããä½ã£ã¦é£ã¹ãªãã¦ã¯ãããªããã®ã«ãªããé£ãããåã®æèã¯åã¾ããã åä¾ã観ã¦ããã¢ãã¡ã§ã赤ã¡ããã空ã®â¦
CSS ã§è¡ããã¯ã¹ã®é«ããæå®ãã line-height å¤ã«ãem(length) ã %(percentage) ãªã©ã®åä½ãä»ãã¦æå®ãã¦ãããµã¤ããæå¤ã¨è¦ããããããã¯ééãã§ã¯ãªãããä¾ãã°ããã²ã¼ã·ã§ã³ã¨ãã§ãããã¯è¦ç´ ã®åç´ã»ã³ã¿ã¼ã«é ç½®ããããã«æå³çã«æå®ãã¦ãããã§ããã°è¯ããã ããã©ãããã§ãªããªã line-height å¤ã«ã¯åä½ãªã (number) ã§æå®ããæ¹ãè¯ãã®ã«ã¨ãæã£ããããããã®çç±ã¯ Eric's Archived Thoughts: Unitless line-heights ã§ãåããããã説æããã¦ãããã ãã©ãã¡ã¨å£åã³ãã¼ãã¦ã¿ãã åä½ããã¨åä½ãªãã®éã æã£åãæ©ã説æããããã«ããµã³ãã«ãä½ã£ã¦ã¿ããp è¦ç´ ããã£ã¦ããã®ä¸ã«ã¤ã³ã©ã¤ã³è¦ç´ ã® em ã§ä¸é¨åã強調ãã¦ãããåãããããããã«ããããã® font-size
XHTML+CSSã§ã¯ããã¼ã¸æ§é ãæèãã¦å¶ä½ãããã¨ã大åãFirefoxã®æ¡å¼µãã¼ã«ãWeb Developer Toolbarããå©ç¨ãã¦ããã¼ãã«ã¬ã¤ã¢ã¦ãã®æ§é ããã«CSSã®ãã¼ã¸æ§é ãè¦åºãæ§é ãéæ¨å¥¨è¦ç´ ã確èªããæ¹æ³ã説æãããã Firefoxã®æ¡å¼µãã¼ã«ãWeb Developer Toolbarã Firefoxã§ã¯ãWeb Developer Toolbarãï¼ä»¥ä¸ãWDTï¼ã¨ããé«æ©è½ãªæ¡å¼µãã¼ã«ãå©ç¨ã§ãããååã®ã¨ãããWebéçºè åãã®ãã¼ã«ãã¼ã§ãããCSSãJavaScriptã®ç¡å¹åãç»å表示ã®ç¡å¹åãã½ã¼ã¹ã®ããªãã¼ã·ã§ã³ãªã©ããã¼ã«ãã¼ããç´æ¥å®è¡ãããã¨ãã§ããã ã¾ããã¤ã³ãã©ã¢ã¯ã·ã¢ã§å ¬éããã¦ããWDTæ¥æ¬èªçãã¤ã³ã¹ãã¼ã«ãããï¼http://www.infoaxia.com/tools/webdeveloper/ï¼ãFirefoxï¼ã¾
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}