CSS单词换行与对齐

CSS单词换行与对齐

.sub-title1,.sub-title2{
	word-break: keep-all;
	word-wrap: break-word; /*只对英文起作用,以单词作为换行依据*/
	white-space: pre-wrap; /*只对中文起作用,强制换行*/
	text-align: justify; /*css英文语句的两端对齐*/
	text-justify: inter-ideograph;
	margin-bottom: 8px;
}

你可能感兴趣的:(前端)