text-wrap

important note重要訊息:

本文件為初步資訊而且可能隨時變更。

設定文字換行的模式。

語法

{ text-wrap: sWrap }

可能的值

sIdeograph

指定下列其中一個值的字串:

normal

可以依照分行規則進行分行。

unrestricted

可以在兩個任意字元或 Gapheme Cluster 中間分行。不會進行斷字,分行限制也會被忽略。

none

不能分行。超出容器元素可容納長度的文字將會溢位。

suppress

不使用分行符號。只有這一行沒有其他有效的中斷點時才能分行。

此屬性的預設值為 normal 。這是繼承屬性。

標準資訊

您可以在 CSS Selectors Level 3 (CSS 選取器層級 3) Gg721764.xtlink_newWindow(zh-tw,Expression.40).png 找到此屬性的定義。

適用範圍

a, address, b, big, blockquote, body, button, caption, center, cite, code, col, colgroup, custom, dd, defaults, dfn, div, dl, dt, em, fieldset, form, hn, html, i, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, li, ol, p, s, span, sub, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var, xmp