此篇文章瀏覽量:
593
div.test{ border:1px solid red; width:60px; height:50px; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; -o-hyphens: auto; hyphens: auto; }
incredible 因為超過範圍寬度,所以會有連字符號的出現。在英文書寫時可用此範例。
如果要取消連字符:
div.test{ -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; -o-hyphens: none; hyphens: none; }