<style>
#test1 {
clear: both;
width: 50%;
text-align: justify;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
</style>
<div id="test1" lang="en">
For example, if you are designing a brand new website for someone, most times you will have to make sure the prototype looks finished by inserting text or photos or what have you. The purpose of this is so the person viewing the prototype has a chance to actually feel and understand the idea behind what you have created.
</div>
重点:
hyphens: auto;
lang="en"
文字全铺满是依靠:
text-align: justify;
效果:

本文介绍了如何使用CSS技巧让文字在自动折行时,遇到整个单词则用中划线连接,以保持视觉效果的整洁。

被折叠的 条评论
为什么被折叠?



