CSS3中的注音对齐属性ruby-align用法指南
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
è¯æ³ï¼
Â
ruby-align : auto | left | center | right | distribute-letter | distribute-space | line-edge
Â
åæ°ï¼
Â
auto : ãç±æµè§å¨ç¡®å®å¯¹é½æ¹å¼ã对äºideographicï¼ä¸äºææ¬ï¼ä»¥distribute-spaceå¼å¯¹é½ã对äºLatinææ¬ä»¥centerå¼å¯¹é½
left : ãæ ¹æ®åºæ¬å®½åº¦å·¦å¯¹é½
center : ãæ ¹æ®åºæ¬å®½åº¦å±
ä¸å¯¹é½ãå¦æåºæ¬å®½åº¦å°äºrubyææ¬ç宽度ï¼é£ä¹å¨rubyææ¬ç宽度ä¸å±
ä¸åºæ¬å®½åº¦
right : ãæ ¹æ®åºæ¬å®½åº¦å³å¯¹é½
distribute-letter : ãå¦ærubyææ¬ç宽度å°äºåºæ¬å®½åº¦ï¼årubyææ¬å¨åºæ¬å®½åº¦ä¸åååå¸ãå¦ærubyææ¬ç宽度大äºæçäºåºæ¬å®½åº¦ï¼å±
ä¸å¯¹é½
distribute-space : ãå¦ærubyææ¬ç宽度å°äºåºæ¬å®½åº¦ï¼årubyææ¬å¨åºæ¬å®½åº¦ä¸åååå¸ãå¨rubyææ¬ä¸ï¼å¨ç¬¬ä¸ä¸ªå符çåé¢åæåå符çåé¢æå个åè·ç空ç½åºåãå¦ærubyææ¬ç宽度大äºæçäºåºæ¬å®½åº¦ï¼å±
ä¸å¯¹é½
line-edge : ãå¦ærubyææ¬ä¸ç¸é»è¡è¾¹ç¼ï¼åå
¶è¢«å±
ä¸ãå¦årubyææ¬è¡å¨åºæ¬ææ¬è¾¹çä¸æ¹
å®ä¾ä»£ç ï¼
- "-//W3C//DTDÂ XHTMLÂ 1.0Â Transitional//EN"Â "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Â Â
- "http://www.w3.org/1999/xhtml"> Â Â Â xmlns=
- Â
- "Content-Type"Â content="text/html;Â charset=utf-8"Â /> Â Â
- Â Â
- ruby.sample1Â {ruby-align:auto;} Â Â
- ruby.sample2Â {ruby-align:start;} Â Â
- ruby.sample3Â {ruby-align:left;} Â Â
- ruby.sample4Â {ruby-align:center;} Â Â
- ruby.sample5Â {ruby-align:end;} Â Â
- ruby.sample6Â {ruby-align:rightright;} Â Â
- ruby.sample7Â {ruby-align:distribute-letter;} Â Â
- ruby.sample8Â {ruby-align:distribute-space;} Â Â
- ruby.sample9Â {ruby-align:line-edge;} Â Â
- ruby {background-color:pink;}  Â
- rt {background-color:yellow;}  Â
- Â Â
- Â Â Â
- Â Â
- Â Â Â
- Â
-
"sample1">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:auto;ï¼Â class= class= class=
  -
"sample2">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:start;ï¼Â class= class= class=
  -
"sample3">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:left;ï¼Â class= class= class=
  -
"sample4">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:center;ï¼Â class= class= class=
  -
"sample5">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:end;ï¼Â class= class= class=
  -
"sample6">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:rightright;ï¼Â class= class= class=
  -
"sample7">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:distribute-letter;ï¼Â class= class= class=
  -
"sample8">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:distribute-space;ï¼Â class= class= class=
  -
"sample9">ä¸å½"sample1">æ¥æ¬Ã"sample1">Englandï¼ruby-align:line-edge;ï¼Â class= class= class=
  -  Â
- Â Â
 Â
Â
å®ä¾å¾
以ä¸å 容就æ¯ç±ç«ææ¯é¢éå°ç¼ä¸ºå¤§å®¶å享çCSS3ä¸ç注é³å¯¹é½å±æ§ruby-alignç¨æ³æåï¼çå®ä»¥ä¸å享ä¹åï¼å¤§å®¶åºè¯¥è¯¦ç»äºè§£äºç¨æ³æåå§ã