åªãããã¶ã€ããŒã¯ã¿ã€ãã°ã©ãã£ãŒã«æéãå²ãå¿ èŠã¯ãããŸããã ãã©ã³ããæ éã«éžæããå€ãã®æŽ»åã¹ã±ãŒã«ããœãŒããããŠãŒã¶ãŒã®å©äŸ¿æ§ã®ããã«ç©ºçœãæ éã«äœ¿çšããŸãã ãã®åŸãåäœæããèªæããããŸã-ãããŠä»ããã¹ãŠã®æèã¯ãã¯ããŠãŒã¶ãŒã«é¢ãããã®ã§ã¯ãããŸããã ãã ããæåã«èªãã§äœ¿çšããã«ã¯ããŒãã«ãå¿ èŠã§ãããè³è³ããã ãã§ã¯ãããŸããã
ããŒãã«ãèªã¿äžããããã¹ããšããŠæ±ã
èšå€§ãªæ°ã®ããŒãã«ããããŸãïŒåçŽãªæ°å€ããŒã¿ãå«ããã®ãããã°ãããã¹ããšæ°å€ã€ã³ãžã±ãŒã¿ã®æ··åç©ãå«ããã®ããããŸãã è¡ããšã«èªã¿åãå¿ èŠã®ãã人ãããã°ãåçŽæ¹åã«ãã°ãã衚瀺ã§ãã人ãããŸãã ããŒãã«ã§äœ¿çšããå¯èœæ§ã¯ãèšèã®ããã«çŽ æŽãããã§ãã ããŒãã«ã®åœ¢åŒã§ã財åææšããã¹ã®æå»è¡šãå€åœèªèŸæžãããã¥ã¡ã³ããæžç±ã®å 容ãæ°å€å€æãäŸ¡æ Œãæ¯èŒãæè¡ä»æ§ãªã©ãæ瀺ã§ããŸãã
ããŸããŸãªãµã€ãºãæ§é ãã³ã³ãã³ããããã³ç®æšã«ããããããã2ã€ã®åçŽãªèšèšååããã¹ãŠã®ããŒãã«ã«é©çšãããŸããèªã¿ããããå«ãŸããããŒã¿ã®æå³ãæªããªãããã«ããå¿ èŠããããŸãã
ããŒãã«ã¯ãèŠãç®ãçŸããããããã ãã«ãè£ é£Ÿãããå¿ èŠã¯ãããŸããã é©åã«èšèšãããããŒãã«ã¯çŸããå ŽåããããŸãããããã¯ãã©ãŒã ãæåã«ã³ã³ãã³ããæäŸããå Žåã®ã¿ã§ãã
ããŒãã«ã¯ããŒã¿ãå«ãç»åã§ã¯ãããŸããã ãããã¯ãæ éãªç 究ãšåæã®ããã®ã¬ã€ãã§ããæ£ããã³ã³ãã€ã«ãããããŒãã«ã¯èªã¿ããããåæãããããŒã¿ã®äžè¬çãªãã¿ãŒã³ãšãã¿ãŒã³ãæããã«ããŸãã 掻çå°å·ãã¶ã€ã³ã®ãã¹ã¿ãŒJan Chicholdã¯1ãæžããŠããŸãã
èšèšããŒãã«ã¯éå±ã§å調ãªãã®ã§ãã£ãŠã¯ãªããŸããã ããã©ããããããã¯åµé çãªããã»ã¹ã«å€ããå¯èœæ§ãããããã¶ã€ã³ã®ä»ã®åéã§åãããšãšåããããèå³æ·±ããã®ã§ãã
å¯èœã§ããã°ãåããŒãã«ã®å¯èªæ§ãäºåã«èæ ®ããŠãã ããã ãã¶ã€ããŒãšããŠã®ããªãã®ä»äºã¯ãæ å ±ãèªã¿ããããåŠã³ããã䜿ãããããã®ã«ããæ¹æ³ãèŠã€ããããšã§ãã
Webäžã®ããã¹ããæäœãããšããç»é¢äžã«å¥œããªã ãåèªãé 眮ããããšã¯ããŠããŸããã åãååãããŒãã«ã«é©çšãããŸãïŒã§ããã ãå€ãã®ããŒã¿ãããã«ããã·ã¥ããªãã§ãã ããã ããŒãã«å ã®ããã¹ãã®ãµã€ãºãå°ããããèªæããããŸãããã¹ãŠã®æ å ±ãæ°å€ã§ããå Žåãããã¯æ©èœããå¯èœæ§ããããŸãã ãããããã®ãããªã·ããªãªã§ãããŠãŒã¶ãŒã¯ç»é¢ã«è¿ã¥ããã«éåžžã®äœçœ®ããæ å ±ãç°¡åã«èªã¿åãå¿ èŠããããŸãã
ããŒãã«ã䌞ã°ããªãã§ãã ãã
å€ãã®ãã¶ã€ããŒã¯ãç»åãæ±ããšããååã«åŸã£ãŠããå¹ ããã©ã¡ãŒã¿ãŒãæ¬èœçã«ããŒãã«ã«é©çšããŸãã ããŒãã«ã¯ãåãŸãã¯ããŒãžã®å¹ ãã£ã±ãã«åŒã䌞ã°ãããŸãã ããã¯äŒžã³ãèªæã§ããé ãããèŠããšãããã¯ã€ã¡ãŒãžã®ããã«ãªããŸãã ãŸããè·é¢ã眮ããŠããŒãã«ãèŠæ ããè¯ããªããšãããŒã¿ãŠãããã®è¿ãã«äžèŠãªã¹ããŒã¹ã衚瀺ãããèªã¿ã«ãããªããŸãã ããã«å ããŠãããŒãã«ã¯èæ¯ç»åãšè²ã®å¢çç·ã§ãã£ã±ãã®èæ¯ã§ãã£ã±ãã§ããããã«ããããŠãŒã¶ãŒã¯ããã¹ãæ§é ãå¿ èŠãšããäžæ¹ã§ãåçã®ããã«ãªããŸãã èªè ã®ããã«ããã®èªæã«å±ããªãã§ãã ããã
ãã¹ãŠã®åã®å¹ ãæãããå ŽåããããŸãã ãã ããããã«ããèªã¿ãããã¯åäžããŸããã äžéšã®ã»ã«ãåºãããŠãã»ã«å ã®æ å ±ã倱ãããé£æ¥ããåã®ããŒã¿éã®æ¥ç¶ãäžæãããŸãã å察ã«ãä»ã®ã»ã«ã¯çãããŠãããŒãã«ã®å 容ãå§çž®ããŸãã ããŒãã«å ã®åã¯ãåå ã®ããŒã¿éã«å¿ããŠæŽåããå¿ èŠããããŸãã æ°åã®å°ããåã¯çãã段èœã®ããåã¯æ¯èŒçåºãããå¿ èŠããããŸãã ç¹ã«å°å·ãã¶ã€ããŒã®å Žåããã®ãããªããŒãã«ãã³ã³ãã€ã«ããã«ã¯æéãããããŸããã¬ã€ã¢ãŠãã®ååã®å¹ ãæåã§èšå®ããå¿ èŠããããŸãã 幞ããªããšã«ããã©ãŠã¶ããã¹ãŠã®äœæ¥ãè¡ããŸãã 圌ãã¯ç¹å¥ãªã¢ã«ãŽãªãºã ã䜿çšããŠCSSããããã£ãšåã«ããŒãã«ã衚瀺ããã®ã§ããããã«é Œãã ãã§ãã
æå°å¡ãã€ã¶ãã䜿çšãã
ãšãã¯ãŒãã»ã¿ããã£ãäžççã«æåãªæ å ±ã®èŠèŠè¡šç€ºã®ãã¹ã¿ãŒã¯ããéçæ å ±ã®èŠèŠè¡šç€ºããšããæ¬ã®è¡šã®ãã¶ã€ã³ã«ã€ããŠèªããããŒã¿ã空çœïŒç©ºçœïŒä»¥å€ã®ã»ãšãã©ãã¹ãŠãåé€ããå¿ èŠããããšè¿°ã¹ãŠããŸãã èšèšèŠçŽ ã®æå°åãšæ瀺ãããæ å ±ã®åŒ·èª¿ã¯ãè¡šã®æŽ»çå°å·èšèšã®æåã®ååã§ãã
éå§ããã«ã¯ãããŒãã«å ã®ãã¬ãŒã ãšå¢çç·ãåãé€ããŸãã ããã¹ãã®é 眮ãããŒãã«ã®å¢çç·ãããŒã¯ãããããããã¯ãã¯ããªã¢æã®éå°ãªè£ 食ã§ããæŽåãè¡ééãçµåã ãã䜿çšããŠèªã¿ããããæ¹åããŠãã ããã å¡ãã€ã¶ããç¹ã«ããŒãã©ã-å¡ãã€ã¶ãç·ã亀äºã«äœ¿çšããããšãããã³äžè¬çã«çœä»¥å€ã®èæ¯ãé¿ããŸãã ãã£ã±ãã«ãªã£ãããŒãã«ã¯èŠæ ããè¯ããããããŸãããããã®ãã¶ã€ã³ã¯ã³ã³ãã³ãããæ°ãããããŸãã
2è¡ããšã«åŒ·èª¿è¡šç€ºããããšã«ãããã¹ãã©ã€ãã®å¡ãã€ã¶ãã¯ããŒã¿ã®å€ãæªããå¡ãã€ã¶ãããŠããªãè¡ã®æ å ±ã®é¢é£æ§ãäœãããŸãã å¡ãã€ã¶ãã¯æ éã«äœ¿çšãããŠãŒã¶ãŒã®æ³šæãæ£ããæ¹åã«åããŠãã ããã ãªã¹ããããšããéžæã¯äžããäžãžãä»ã®å Žåã§ã¯-èªæžã®æ¹åã«è¡ãå¿ èŠããããŸãã
ããŒãã«ã®è¡ãšåã®éã®å¢çãšç·ã«ãåãããšãåœãŠã¯ãŸããŸãã ãã£ãã«äœ¿çšããªãã§ãã ããã Jan Chicholdã®ã¡ã¢ïŒ
ããŒãã«ã¯ãåçªå·ãå¢çç·ã§å²ãŸããã°ãªããã®ããã«èŠããã¹ãã§ã¯ãããŸããã å¢çãªãã§ãã£ãŠã¿ãŠãã ããã ãããããŸã£ãããªããŠã¯ãªããªãå Žåã«ã®ã¿äœ¿çšããŠãã ããã åéã®è·é¢ãå°ããããå Žåã«ã®ã¿åçŽå¢çãå¿ èŠã«ãªããããããŒãã«å ã®ããŒã¿ã解éãããšãã«ãšã©ãŒãçºçããå¯èœæ§ããããŸãã åçŽã®å¢çç·ã®ãªãããŒãã«ã¯ãåçŽã®å¢çç·ãããèŠæ ããããã现ãå¢çç·ã¯å€ªããã®ããèŠæ ããããŸãã
Jan Chicholdãé察称ã¿ã€ãã°ã©ãã£ã1967幎 ã
åãšè¡ãå¢çç·ã§åºåãã®ã¯ãäœçœ®åãããééãããã³çµåã ãã§ã¯èªè ãã¬ã€ãã§ããªãå Žåã®ã¿ã§ãã ããã§ãå¢çç·ã®åé¢ãå¿ èŠãªå Žåã¯ãæããå¡ãã€ã¶ãããŒã³ã䜿çšããŸãã ããªãã®ç®æšã¯ãéå£ãç«ãŠãããšã§ã¯ãªããå¿ èŠãªãã®ã匷調ããããšã§ãã
ããã¹ããå·Šã«ãæ°åãå³ã«ãã¿ã€ãã«ãè¡šã®ããŒã¿ã«æããŸã
ç¹°ãè¿ããŸãããè¡šã¯è¡šç€ºããã ãã§ãªããèªã¿åãããã«äœæãããŸãã ãããã£ãŠãããŒãã«å ã®ããã¹ããç°ãªãã³ã³ããã¹ããã€ãŸãå·Šã«æããããã«æããŸãã å¹ ãæããªãã§ãã ãããããã¹ããå³åŽã«å°ãããŒããŒããã«ããŠãããšãè¡ã®å¹ å šäœã«åºããåèªéã®è·é¢ã«ãã£ãŠãå·ãïŒç©ŽïŒãäœæãããããŒã¿ãèªã¿ã«ãããªããŸãã å³ç«¯ãäžæãã§ããå Žåã¯ãæ°ããè¡ã§ã¯ãŒãã©ããã䜿çšããŸãã
æ°åãå³ã«æããŸãã ããã¯ãããŒãã«ãäžããäžã«äžç®ã§èŠããšãã«å€ãæ¯èŒããã®ã«åœ¹ç«ã¡ãŸãã æ å ±ãèªã¿ãããããããã«ãåãå°æ°ç¹ä»¥äžã®æ¡æ°ã䜿çšããŸãã
åäžæ§ãšç¥èŠã®å®¹æãã®ããã«ãããŒãã«ããããŒããã®äžã®ããŒã¿ã®é 眮ã«åŸã£ãŠé 眮ããŸããæ°å€ããŒã¿ã®å Žåã¯å³åŽãããã¹ãã®å Žåã¯å·ŠåŽã§ãã äŸïŒ
å°æ°ç¹
ããŒã¿ã®ç²ŸåºŠãåžžã«å¶åŸ¡ã§ãããšã¯éããŸããã å Žåã«ãã£ãŠã¯ã10é²æ°å€ãæ ŒçŽãã代ããã«ãæ°å€ãæãè¿ãæŽæ°ã«äžžããããŸãã ãã®å Žåãå³æãã§ã¯ãåã®å 容ããã°ãã確èªããããšã¯ã§ããŸãããå°æ°å€ã®å°ããªæ°å€ã¯èŠèŠçã«å€§ããèŠããŸãã å³ç«¯ã§ã¯ãªããå°æ°ç¹ã«æããŠãã ããã ããã«ãããèªè ã¯è¡šã®æ°å€ã€ã³ãžã±ãŒã¿ãç°¡åã«éžæããŠæ¯èŒã§ããŸãã
HTML 4ã§ã¯ã
td
ã¿ã°ãšãã®
char
å±æ§ã䜿çšããŠãçè«çã«ã¯å°æ°ç¹ã®äœçœ®åãããå¯èœã§ããããå®éã«ã¯ãã®ããããã£ã¯ãµããŒããããŠããŸããã§ããã HTML 5ã¯ãããã®ç®çã§
text-align
ã䜿çšã
text-align
ãå·çæç¹ã§ã¯ããã®ããããã£ããµããŒãããŠããŒãã«å ã®æ°å€ãæããããšã¯çæ³çã§ã¯ãããŸããã ïŒCSSããã¹ãã¬ãã«4ã¢ãžã¥ãŒã«2 ïŒ
text-align
ã®æ§æ
text-align
次ã®ãšããã§ããåŒçšç¬Šã«ã¯ãäœçœ®åãããè¡ãããæåïŒéåžžã¯ããªãªããŸãã¯ã³ã³ãïŒãå«ãŸããã¹ããŒã¹ããŒããããŒã¯ãŒããå ¥åãããŠäœçœ®åããã®ã¿ã€ãã瀺ãããŸãïŒããã©ã«ãã¯
right
ïŒã
次ã®äŸã§ã¯ãããŒã¿ã¯10é²æ°ã®ãã€ã³ãã«äžå€®æããããŠé 眮ãããŸãã
td { text-align: "." center; }
ãã®äŸã§ã¯ãããŒã¿ã¯æåãÃããšãïŒãã«æããããŠããŸãã
æ°å€ããŒã¿ãå«ãããŒãã«ã§MayuskulnyeïŒå€§æåïŒçªå·ã䜿çšãã
財åã¬ããŒããã¹ã±ãžã¥ãŒã«ãªã©ã®å€ãã®ããŒãã«ã¯ãäž»ã«æ°åã§æ§æãããŠããŸãã äž»ãªç®çã¯ãåãè¡ããŸãã¯ãããã®çµã¿åããã䜿çšããŠæ°å€ããŒã¿ãè¡šãããšã§ãã èªè ã¯ããã®ãããªè¡šãåçŽã«è¡šç€ºããããå¿ èŠãªæ å ±ãæ€çŽ¢ããããæ°å€ã€ã³ãžã±ãŒã¿ãŒãæ¯èŒãããã§ããŸãã 衚瀺ãããæ å ±ã®çš®é¡ãå€æããã«ã¯ãåãŸãã¯è¡ãèŠãã ãã§ååãªå ŽåããããŸãã
åäœãæ°åãæ°çŸãåçŽã«é 眮ãããŠããå Žåãæ°å€ã®æ¯èŒãšæ¯èŒã¯ã¯ããã«ç°¡åã§ãã ã€ãŸããæ°åã®ãã¹ãŠã®æ°åã¯åãå¹ ã§ãªããã°ãªããŸããã
çå¹ ãã©ã³ãã«ã¯åãå¹ ã®æ°åãå«ãŸããŠãããè¡šã«ããŒã¿ã衚瀺ããã®ã«éåžžã«é©ããŠããŸãã ãã ããå€ãã®ããããŒã·ã§ãã«ãã©ã³ãïŒã€ãŸãã1ããã§ã«8ã§ãããWãIããåºããã©ã³ãïŒã«ã¯ãè¿œå ã®åºå®å¹ ãã©ã³ãã»ãããå«ãŸããŠããŸãã ãã®ãããªæ°å€ã¯è¡šåœ¢åŒãšåŒã°ããŸãã ãããã¯æšæºã®æ¯äŸã®ãã®ãšã¯ç°ãªãèšèšã§ãã ããšãã°ããŠãããïŒ1ïŒã¯æ°Žå¹³æ¹åã®åºèŸºãæã¡ããŒãïŒ0ïŒã¯ãéžæããæ°å€ã®å¹ ã«ããããé©å¿ããããã«ãå€å°åãã«ãªãå ŽåããããŸãã éåžžã衚圢åŒã®æ°åã¯ãMayuscularïŒå€§æåïŒããã³MinusculeïŒå°æåïŒã®ããªãšãŒã·ã§ã³ã«å«ãŸããŸãã è¡šã®æ°åã䜿çšããŠãè¡šå ã®æ°å€ããŒã¿ã®æ¯èŒãç°¡çŽ åããŸãã
ããŒãã«ã®å€§æåçªå·ãå®çŸ©ããã«ã¯ãããããã£ã䜿çšããŸã
lining-nums
ããã³
tabular-nums
font-variant-numeric
ïŒ
table { font-variant-numeric: lining-nums tabular-nums; }
font-feature-settings
å¿ èŠãšãããã©ãŠã¶ãŒã®å Žåã
OpenType lnum
ããã³
tnum
䜿çšã
tnum
ã
æ¯äŸçªå·
æ¯äŸæ°åã®å Žåã
font-variant-numeric
ã
proportional-nums
font-variant-numeric
ã«èšå®ã
font-variant-numeric
ã
font-feature-settings
å¿ èŠãšãããã©ãŠã¶ãŒã®å Žåã¯ã
OpenType pnum
ã¿ã°ã䜿çšã
font-feature-settings
ã
ã¹ããŒã¹ã䜿çšããŠåé¢ããã³ããŒãž-空çœ
å¢çç·ãã»ãã¬ãŒã¿ãããã³å¡ãã€ã¶ãã»ã«ãåé€ããåŸãããŒãã«ãèªã¿åããããã«ã空çœãã䜿çšããå¿ èŠããããŸãã ãã®æ®µéã§ã¯ãã¹ãã¬ããã·ãŒãã®èšèšãå¿ããŠãã¿ã€ãã°ã©ãã£ãšã²ã·ã¥ã¿ã«ãã°ã«ãŒãåã®ååã«ã€ããŠèãå§ããå¿ èŠããããŸãã
ãããè¡ãã«ã¯ãåèŠçŽ ãç°¡åã«èªã¿åããä»ã®èŠçŽ ãšã¯å¥ã«èæ ®ã§ããããã«ãããŒã¿ãåé¢ããå¿ èŠããããŸãã æåã«
border-collapse
ã䜿çšããŠã»ã«éã®è·é¢ãåé€ããŸãã
table { border-collapse: collapse; }
æšæºã®HTMLããŒãã«ã§ã¯ãé£æ¥ããã»ã«ã«ã¯å¢çç·ããããäºãã«äžå®ã®è·é¢ã«ãããŸãã ãã®ã»ã«ééã¯ãå¢çç·èªäœãåé€ãããŠãç¶æãããŸãã
border-collapse
ã®å€ãæã€
border-collapse
ããããã£ã¯ããã©ãŠã¶ãŒã«ã»ã«ã®ãžã£ã³ã¯ã·ã§ã³ã§äºéå¢çç·ãåé€ããã1ã€ã ããæ®ããŸãã ããŒãã«ã®ã»ãšãã©ã®å¢çç·ãåé€ããã®ã§ã
border-collapse
ã¢ãã«ãæãåãå ¥ããããŸãã
次ã®ã¹ãããã§ã¯ãåã»ã«ã«ããã£ã³ã°ãè¿œå ããŠããŒã¿ãåé¢ããŸãã ã»ã«ã®äžéšã®ã€ã³ãã³ãã¯ãå°ãå°ãªãããã®ãæé©ã§ãã ããã«ãããäžæ®µãšäžæ®µã®è·é¢ãèŠèŠçã«èª¿æŽã§ããŸãã ããŒãã«å šäœãæ£ããé 眮ãããããã«ããã«ã¯ãããŒã¿ã»ã«ãšåãã»ã«ããããŒã®ã€ã³ãã³ãã䜿çšããŸãã ããŒãã«ã®è¡ã®é·ãã¯çãããšãå€ããããè¡ã®é«ããæžããããšãã§ããŸãã 以äžã®äŸã§ã¯ãäœåãªè¡ééããã¹ãŠåé€ããŸãããããã©ã³ããšã»ã«å ã®ããã¹ãã®éã«ãã£ãŠã¯ãããã«ã¹ããŒã¹ãå¿ èŠã«ãªãå ŽåããããŸãã
td, th { padding: 0.125em 0.5em 0.25em 0.5em; line-height: 1; }
ããŒãã«èšèšã§ã®ã²ã·ã¥ã¿ã«ãã°ã«ãŒãåã®æãæçšãªååã¯ãè¿æ¥æ§ãšé¡äŒŒæ§ã®ååã§ãã åæ§ã®ããŒã¿ãçµã¿åãããŠãæ®ãã®æ å ±ã«å¯ŸããŠèªã¿ãããããŸãã ã€ãŸããæå³ããšã«ã°ã«ãŒãåãããåãšè¡ãåé¢ããŸãã ã°ã«ãŒãåã®å©ç¹ã¯ããã®ãããªããŒãã«ãèªèããããããšã§ããã€ãŸããã°ã«ãŒãã«åå²ãããŠããªãåãšè¡ãæã€ããŒãã«ãããèªã¿ããããªããŸãã æå³ãå 容ãé¡äŒŒããŠããããŒã¿ããé 眮ãåãè²ããŸãã¯ãã©ã³ãã§åŒ·èª¿è¡šç€ºããŸãã
ããŒãã«ãã£ãã·ã§ã³
è¡šãã£ãã·ã§ã³ã®æŽ»çå°å·æ©èœã«ã€ããŠã¯ããæ©èœããã¹ãã®ãã©ã³ããéžæããæ¹æ³ãã®ç« ã§è©³ãã説æããŸããããã®ç« ã§ã¯ã眲åã®èšèšã«ã€ããŠããã€ãã®èšèãèšãã®ãçã«ããªã£ãŠããŸãã ããŒãã«ã
figure
ã¿ã°ã§ã©ããããå ŽåïŒåççïŒã
figcaption
ã¿ã°ããã®ååŸã«äœ¿çšããŸãã
figure
èŠçŽ ã䜿çšãããªãå Žåã
caption
眲åã«é©ããŠããŸãã眲åã¯ãéå§
table
ã¿ã°ã®çŽåŸã§ãããŒãã«ããŒã¿ã®åã«é 眮ãããŸããäŸïŒ
<table> <caption> Imperial to metric conversion factors <p><i>Values are given to three significant figures</i></p> </caption> <thead> ⊠</thead> <tbody> ⊠</tbody> </table>
caption-side
ããããã£ãšå¯Ÿå¿ãã
top
ãŸãã¯
bottom
å€ã䜿çšããŠãããŒãã«ã®äžãŸãã¯åŸã«ãã£ãã·ã§ã³ãé 眮ã§ããŸãã
caption { caption-side: bottom; }
次ã®è¡šã«ã¯çœ²åãå«ãŸããŠãããã²ã·ã¥ã¿ã«ãã°ã«ãŒãåã®ååã䜿çšããŠãè²ä»ãã®ç·ã䜿çšããŠåæ§ã®ããŒã¿ãåé¢ããŠããŸãã
ãã®äŸã§ã¯ã10é²æ°ã¯ã³ã³ãã§æŽåãããŠããªãããšã«æ³šæããŠãã ããã ãã®è¡šã®ç®çã¯ãæ°å€ãæ¯èŒããããšã§ã¯ãªããä¹ç®ä¿æ°ã決å®ããããšã§ãã ãããã£ãŠãæ°å€ããŒã¿ã¯å³æãã«ãªããŸãã
ãã¶ã€ã³ããããããªãã§ãã ãã
ãã©ã³ã¹ã®é£è¡å£«ã¢ã³ãã¯ãŒãã»ãã»ãµã³=ãã°ãžã¥ããªã¯ãã è¿œå ãããã®ããªããšãã§ã¯ãªããäœã奪ãããšãã§ããªããšãã«å®ç§ãéæãããããš3ã«æžããŠããŸãã
ãã®åŒçšã¯ãã§ã«æ±ºãŸãæå¥ã«ãªã£ãŠãããšããäºå®ã«ãããããããããŒãã«èšèšãžã®ã¢ãããŒããå¿ å®ã«åæ ããŠããŸãã ããŒãã«ã¯ãããèªäœãããŒã«ã§ããExcelã®ã¹ãã¬ããã·ãŒãã®ããã«èŠããã¹ãã§ã¯ãããŸããã ãã®ããŒãã«ã¯ãèªã¿åãããã³ååŸå¯èœãªããŒã¿ã®è¡šç€ºãç°¡çŽ åããããã«äœ¿çšãããŸãã Excelã®ããŒãã«ã䜿çšãããšãããã¹ãã®æžåŒèšå®ãå¢çç·ã®ã¹ã¿ã€ã«ãã»ã«ã®å¡ãã€ã¶ããè¿œå ã§ããŸããããã«ãããç»åã«ãªããŸãããèªã¿ãããã¯åäžããŸããã ããŒãã«ãçŸããå ŽåããããŸãããèžè¡åã§ã¯ãªããããè£ é£Ÿããå¿ èŠã¯ãããŸããã ããŒãã«ãã¹ã¿ã€ãªã³ã°ãããšãã¯ã誰ããããã䜿çšããããèããŠãã ããã
ããŒãã«ãå°ããªç»é¢ã«é©å¿ããã
ããŒãã«å ã®æ å ±ãæ£ãã衚瀺ããã«ã¯ããã¹ãŠã®ããªã¡ãŒãã«ãéèŠã§ãã å Žåã«ãã£ãŠã¯ãããŒãã«ã¯45ã75æåã®æšæºæååãããåºãããå¿ èŠããããŸãããã®ãããå°ããªç»é¢ãžã®é©å¿ã¯ç°¡åãªäœæ¥ã§ã¯ãããŸããã æé©ãªãªãã·ã§ã³ã¯ãåããŒãã«ã§åå¥ã«äœæ¥ããããšã§ãããããã¯åžžã«å¯èœãšã¯éããŸãããç¹ã«ãCMSããŒã¿ããŒã¹ã®ãã¹ãŠã®ããŒãã«ã«åäžã®ã¹ã¿ã€ã«ãé©çšããå¿ èŠãããå Žåã¯ããã§ãã
ã¹ããŒã¹ãç¯çŽããæãæçœãªæ¹æ³ã¯ãå§çž®ãã©ã³ãã䜿çšãããããµã€ãºãå°ããããããšã§ãïŒãã ããäž¡æ¹ã®ãªãã·ã§ã³ãåæã«äœ¿çšããããšã¯ã§ããŸããïŒã ãããã«ãããããŒãã«ã®å¯èªæ§ã¯åœ±é¿ãåããŸããã
èŠåºãã«æããã©ã³ããè©ŠããŠãã ããã
ããŒãã«ã®ããããŒãé·ããç»é¢å¹ ãå¶éãããŠããå ŽåãåŸæãã©ã³ãã䜿çšãããšã¹ããŒã¹ãç¯çŽã§ããŸãã
以äžã¯ã
transform
ããã³
transform-origin
ããããã£ã䜿çšããŠCSSã§ãããå®çŸããæ¹æ³ã®äŸã§ãã èŠåºãã«ã¯çµ¶å¯Ÿé 眮ã䜿çšããŸããããã«ãããåã®å ã®å¹ ãå€æŽã§ããŸã-å¿ èŠã«å¿ããŠãããŒã¿ãšãšãã«æžå°ããŸãã
th { transform-origin: bottom left; position: absolute; } th.degC { transform: translate(2.58em,-2em) rotate(-60deg); } th.degF { transform: translate(5.14em,-2em) rotate(-60deg); }
ããŒãã«ã«æ°Žå¹³ã¹ã¯ããŒã«ãè¿œå ãã
ã¢ãããã£ãããŒãã«ã¬ã€ã¢ãŠãã®æãç°¡åãªãœãªã¥ãŒã·ã§ã³ã¯ãããŒãã«ã®äžéšãããã€ã¹ã®ç»é¢å€ã«ç§»åãããšãã«ããã©ãŠã¶ãŒãæ°Žå¹³ã¹ã¯ããŒã«ã䜿çšã§ããããã«ããããšã§ãã åæã«ãç»é¢äžã®ãã¹ãŠã®ããã¹ãã§ã¯ãªããããŒãã«ã®ã¿ãå·Šå³ã«ã¹ã¯ããŒã«ããããã«ããŠãã ããã
ãã®å¹æãå®çŸããã«ã¯ãããŒãã«ã
figure
ã¿ã°ã§ã©ããããŸãã
<figure class="fig-table"> <table> ⊠</table> </figure>
以äžã¯ãCSSã䜿çšããŠãããŒãžã®æ®ãã®ããã¹ãã«åœ±é¿ãäžããã«ããŒãã«ã®ã¹ã¯ããŒã«ãã¢ã¯ãã£ãã«ããæ¹æ³ã®äŸã§ãã
.fig-table { max-width: 100%; overflow-x: scroll; }
ããŒãã«ã«åºå®å¹ ãèšå®ããªãã§ãã ãããã¹ã¯ããŒã«ãé©çšããåã«ããã©ãŠã¶ã¯ãããå¯èœãªéãå§çž®ããŸãã å¯èªæ§ãç¶æããã«ã¯ãæ¹è¡ããªãã¹ããŒã¹ãš
white-space:nowrap
ã ã¹ã¯ããŒã«ã®ããèªã¿åãå¯èœãªããŒãã«ã¯ãã¹ã¯ããŒã«ã®ãªãèªã¿åãäžèœãªããŒãã«ãããã¯ããã«åªããŠããããšã«æ³šæããŠãã ããã
åçŽãªããŒãã«ããªã¹ãã«å€æãã
å°ããªããŒãã«ã§äœæ¥ããã¹ããŒã¹ãéãããŠããå Žåã¯ããªã¹ã圢åŒã§èªç±ã«è¡šç€ºããŠãã ããã ããã«æãé©ããããŒãã«ã¯ãåŸæ¥å¡ã®ãã£ã¬ã¯ããªãªã©ã®æ§é åããŒã¿ãå«ããªã¹ãã§ãã
ãã®ãããªããŒãã«ã«ååãªã¹ããŒã¹ããªãå Žåã¯ããã®æ§é ãå€æŽããŠã¿ãŠãã ããã 以äžã®äŸã§ã¯ãããŒãã«ã¯äžè¬çã«ã³ã³ãã¯ãã«ãªããããå€ãã®åçŽæ¹åã®ã¹ããŒã¹ãå æããŸãããçãç»é¢ã«é©ããŠããŸãã
äž¡æ¹ã®ããŒãã«ã¯åãHTMLããŒã¯ã¢ããã䜿çšããŸãã å¯äžã®éãã¯ã
data-title
å±æ§ã§ããããã¯ã2çªç®ã®ããªã¢ã³ãã®åã»ã«ã«é©çšãããŸãã ãã®å±æ§ã¯ãå·ŠåŽã®åã®ã«ããŽãªåïŒååãé»åã¡ãŒã«ãã¿ã€ãã«ãé»è©±ïŒãç¹°ãè¿ããšããç¹ã§äŸ¿å©ã§ãã
<th data-title="Name">Jones, Claire</th> <td data-title="Email">claire.jones@domain.com</td> <td data-title="Title">Managing Director</td> <td data-title="Phone">01234 567890</td>
ã¡ãã£ã¢ã¯ãšãªãšCSSïŒJavaScriptãªãïŒã䜿çšããŠããŒãã«ããªã¹ãã«å€æãã4ã€ã®ç°¡åãªæé ïŒ
- ããŒãã«ã®ã¬ã€ã¢ãŠããå€ãå§ããç»é¢ã®å¹
ã決å®ããŸãã
-
display:block
ã䜿çšããŠããã¹ãŠã®ããŒãã«èŠçŽ ãåçŽã«æãdisplay:block
ã
- ãã¹ãŠã®ç©ºã®ã»ã«ãå«ãè¡ããããŒãé衚瀺ã«ããŸãã
- åããŒã¿ãŠãããã®ååã衚瀺ããŸãïŒãªãã·ã§ã³ïŒã
@media (max-width: 25em) { table, caption, tbody, tr, th, td { display: block; text-align: left; } thead, th:empty, td:empty { display: none; visibility: hidden; } th[data-title]:before, td[data-title]:before { content: attr(data-title) ": "; display: inline-block; width: 3.5em; } }
äžèšã®ã¹ã¿ã€ã«ã«å ããŠãããŒãã«ãçŸèŠ³ã倱ããªãããã«ãè¿œå ã®CSSã¹ã¿ã€ã«ãé©çšããå¿ èŠããããŸãã ãã®æ¹æ³ã¯ãã¢ãŒãã³ã¬ã¹ã¿ããœã³4ã«ãã£ãŠæåã«äœ¿çšãããŸããã
ããŒãã«ãã¬ã¹ãã³ã·ãã«ããå Žåã¯ãç®æšããé²ãã§ãã ããã
ã¬ã¹ãã³ã·ãããŒãã«ãäœæããã«ã¯ãå€ãã®5ã€ã®ææ³ããããŸãã CSSã®ã¿ã«åºã¥ããã®ããããŸãïŒ2ã€èšåããŸããïŒããJavaScriptã䜿çšããŠããè€éãªãã®ããããŸãã ãã¯ããã¯ã決å®ããã«ã¯ããŠãŒã¶ãŒãããŒãã«ã䜿çšããæ¹æ³ãšçç±ãèªåããŠãã ããã ããšãã°ãåãŸãã¯è¡ã®ããŒã¿ãæ¯èŒããããã®ããŒãã«ã«ã¯ç¹å¥ãªæ³šæãå¿ èŠã§ãã
åã®ããŒã¿ãæ¯èŒãããããã1ã€ã®æ¹æ³ã¯ããã€ããŒãã£ãŒã«ããé衚瀺ã«ããŠãããããããŒãã«ã«æ»ãæ©èœã§ãã ãã®ææ³ã¯ãåšåº«å€åããŒãã«ã䜿çšããŠããã£ã©ã¡ã³ãã°ã«ãŒã6ã«ãã£ãŠæ®åããŸããã
å€ãã®å ŽåãããŒãã«ã«ã¯ååãªæ³šæãæãããŠããŸãããããŒãã«ã®èšèšãäžé©åã§ãã¬ã€ã¢ãŠããäžé©åã§ãã ããŒãã«ã®é©å¿æ§ã¯ãäžèŠãããšæããã»ã©åçŽãªã¿ã¹ã¯ã§ã¯ãããŸããã ããã¯äž»ã«ãããŒãã«ã䜿çšãããç®çã«äŸåããŸãã ããŒãã«ã¯ç¡èŠããªãã§ãã ãããæ å ±ãè±å¯ã§ãæå³ãšå 容ãè±å¯ã§ãã
ç·šéè ãã
ãããã¯ã«é¢ããNetologyã³ãŒã¹ïŒ
- ãªãã©ã€ã³ã³ãŒã¹ïŒâ Product Designer âïŒããã°ã©ã ã¯Badooãšå
±åã§äœæãããŸããããã³ãã³ã®æ絊åŠçã¯æé«ã®åŠçãåŸ
ã£ãŠããŸãïŒ;
- ããã°ã©ã å°éè· " Fullstack-designer ";
- ãªã³ã©ã€ã³ã³ãŒã¹ã ã€ã³ãã©ã°ã©ãã£ãã¯ã¹ïŒããŒã¿ãã¬ãŒã³ããŒã·ã§ã³ã®èžè¡ ãã
- ãããªã³ãŒã¹ã ã¿ã€ãã°ã©ãã£ã®åºç€ïŒãã©ã³ãã®æäœæ¹æ³ ã
ç¡æã®ããã°ã©ã ãšã¯ã©ã¹ïŒ
- â ã°ã©ãã£ãã¯ãã¶ã€ã³ïŒæ§æãè²ãã¿ã€ãã°ã©ã㣠â;
- ã Adobe PhotoshopïŒWebãã¶ã€ããŒã®åºæ¬ ã;
- ã Adobe XDïŒã€ã³ã¿ãŒãã§ã€ã¹ãã¶ã€ããŒã®åºæ¬ ã
ããã¹ããžã®æ³šèšïŒ
1.ã€ã³ã¿ã€ã·ããŒã«ãã«ããé察称ã¿ã€ãã°ã©ãã£ïŒ1967幎ã1935幎以éïŒã
2. CSSããã¹ãã¢ãžã¥ãŒã«ã¬ãã«4ã®ããŒãã«å ïŒhttp://wbtyp.net/103ïŒã®æåããŒã¹ã®é 眮 ã
3.ãã¬ã»ãã»ãªã ïŒé¢šãç ãæãšããŠè±èªã«ç¿»èš³ïŒã¢ã³ãã¯ãŒãã»ãã»ãµã³=ãã°ãžã¥ããªïŒ1939ïŒã
4. Easy Designsããã°ïŒ2013ïŒã®Aaron Gustafsonã«ããã Responsive Tables ãïŒhttp://wbtyp.net/16ïŒã
5.ææ°ã®ãªãã·ã§ã³ã«ã€ããŠã¯ãCSS-Tricks '' Responsive Tables 'ïŒhttp://wbtyp.net/148ïŒãåç §ããŠãã ããã
6. Filament Groupã®ã Tablesaw ãïŒhttp://wbtyp.net/15ïŒã¬ã¹ãã³ã·ãããŒãã«ãã©ã°ã€ã³ã