hanging-punctuation
å©ç¨å¯è½æ§ã¯éå®ç
ãã®æ©è½ã¯ãã¼ã¹ã©ã¤ã³ã§ã¯ããã¾ãããæãåºã使ç¨ããã¦ãããã©ã¦ã¶ã¼ã®ä¸é¨ã§åä½ãã¾ããã
Want more browser support for this feature? Tell us why.
hanging-punctuation 㯠CSS ã®ããããã£ã§ãåºåãè¨å·ãããã¹ãã®è¡é ãè¡æ«ã«ã¶ãä¸ããã¹ããã©ãããæå®ãã¾ããã¶ãä¸ããããåºåãè¨å·ã¯è¡ããã¯ã¹ã®å¤å´ã«é
ç½®ãããããã¨ãããã¾ãã
æ§æ
/* ãã¼ã¯ã¼ãå¤ */
hanging-punctuation: none;
hanging-punctuation: first;
hanging-punctuation: last;
hanging-punctuation: allow-end;
/* 2 ã¤ã®ãã¼ã¯ã¼ã */
hanging-punctuation: first allow-end;
hanging-punctuation: first last;
hanging-punctuation: last allow-end;
/* 3 ã¤ã®ãã¼ã¯ã¼ã */
hanging-punctuation: first allow-end last;
/* ã°ãã¼ãã«å¤ */
hanging-punctuation: inherit;
hanging-punctuation: initial;
hanging-punctuation: revert;
hanging-punctuation: revert-layer;
hanging-punctuation: unset;
hanging-punctuation ããããã£ã¯ 1 ã¤ã2 ã¤ã3 ã¤ã®å¤ã空ç½ã§åºåã£ãå¤ã§æå®ãããã¨ãã§ãã¾ãã
å¤
none-
æåã®ã¶ãä¸ããè¡ãã¾ããã
first-
è¦ç´ ã®æåã®æ¸å¼è¨å®ãããè¡é ã«ãããéãæ¬å¼§ã¾ãã¯å¼ç¨ç¬¦ãã¶ãä¸ãã¾ããæ¬¡ã®ãã®ãé©ç¨ããã¾ãã
last-
è¦ç´ ã®æå¾ã®æ¸å¼è¨å®ãããè¡æ«ã«ãããéãæ¬å¼§ã¾ãã¯å¼ç¨ç¬¦ãã¶ãä¸ãã¾ããæ¬¡ã®ãã®ãé©ç¨ããã¾ãã
allow-end-
å¥èªç¹ãã¶ãä¸ããªãã¨è¡æ«ãæããªãå ´åã«ãå¥èªç¹ãã¶ãä¸ãã¾ãã
ã¶ãä¸ãããã¨ãã§ããåºåãæåãå¥èªç¹ã«ã¯ã次ã®ãã®ãããã¾ãã
U+002C, COMMAU+002E, FULL STOPU+060C, ARABIC COMMAU+06D4, ARABIC FULL STOPU+3001, IDEOGRAPHIC COMMAU+3002, IDEOGRAPHIC FULL STOPU+FF0C, FULLWIDTH COMMAU+FF0E, FULLWIDTH FULL STOPU+FE50, SMALL COMMAU+FE51, SMALL IDEOGRAPHIC COMMAU+FE52, SMALL FULL STOPU+FF61, HALFWIDTH IDEOGRAPHIC FULL STOPU+FF64, HALFWIDTH IDEOGRAPHIC COMMA
ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã«ãã£ã¦ã¯ãã以å¤ã®æåãããããããã¾ããã
å ¬å¼å®ç¾©
| åæå¤ | none |
|---|---|
| é©ç¨å¯¾è±¡ | ãã¹ã¦ã®è¦ç´ |
| ç¶æ¿ | ãã |
| è¨ç®å¤ | æå®éã |
| ã¢ãã¡ã¼ã·ã§ã³ã®ç¨®é¡ | 颿£å¤ |
形弿æ³
hanging-punctuation =
none |
[ first || [ force-end | allow-end ] || last ]
ä¾
>éå§ã¨çµäºã®å¼ç¨ç¬¦ãã¶ãä¸ããããè¨å®
HTML
<p>
«For a moment, nothing happened. Then, after a second or so, nothing continued
to happen.»
</p>
<p class="hanging">
«For a moment, nothing happened. Then, after a second or so, nothing continued
to happen.»
</p>
<p class="hanging right">
«For a moment, nothing happened. Then, after a second or so, nothing continued
to happen.»
</p>
CSS
p {
width: 15em;
border: 1px solid #cccccc;
font-size: 2rem;
font-style: italic;
margin: 1em;
}
p.hanging {
hanging-punctuation: first last;
}
p.right {
text-align: right;
}
çµæ
仿§æ¸
| 仿§æ¸ |
|---|
| CSS Text Module Level 3 > # hanging-punctuation-property > |