auto:它用于允许浏览器确定哪种对齐方式属性对于给定的文本更好。
用法:
text-justify:auto;
例:
text-justify property#main {
border:1px solid green;
padding-bottom:6px;
}
#geeks {
text-align:justify;
text-justify:auto;
}
h1, h2, h3 {
text-align:center;
}
GeeksforGeeks
text-justify:auto;
HTML stands for Hyper Text Markup Language.
It is used to design web pages using a markup
language. HTML is the combination of Hypertext
and Markup language.
输出:
inter-word:通过增加或减少文本中各个单词之间的间距来证明文本是合理的。
用法:
text-justify:inter-word;
例:
text-justify property#main {
border:1px solid green;
padding-bottom:6px;
}
#geeks {
text-align:justify;
text-justify:inter-word;
}
h1, h2, h3 {
text-align:center;
}
GeeksforGeeks
text-justify:inter-word;
HTML stands for Hyper Text Markup Language.
It is used to design web pages using a markup
language. HTML is the combination of Hypertext
and Markup language.
输出:
inter-character:通过增加或减小文本中各个字符之间的间距来证明文本是合理的。
用法:
text-justify:inter-character;
例:
text-justify property#main {
border:1px solid green;
padding-bottom:6px;
}
#geeks {
text-align:justify;
text-justify:inter-character;
}
h1, h2, h3 {
text-align:center;
}
GeeksforGeeks
text-justify:inter-character;
HTML stands for Hyper Text Markup Language.
It is used to design web pages using a markup
language. HTML is the combination of Hypertext
and Markup language.
输出:
none:它用于禁用文本中使用的对正方法。
用法:
text-justify:auto;
例:
text-justify property#main {
border:1px solid green;
padding-bottom:6px;
}
#geeks {
text-align:justify;
text-justify:auto;
}
h1, h2, h3 {
text-align:center;
}
GeeksforGeeks
text-justify:auto;
HTML stands for Hyper Text Markup Language.
It is used to design web pages using a markup
language. HTML is the combination of Hypertext
and Markup language.
输出: