CSS3 自动换行 css如何实现自动换行
CSS3 自动换行 css如何实现自动换行下面是 CSS 代码:
简单实例:
允许对长单词进行拆分,并换行到下一行:p {word-wrap:break-word;}下面是产字符换行的完整示例:
<!DOCTYPE html>
<html>
<head>
<style>
p.test
{
width:11em;
border:1px solid #000000;
word-wrap:break-word;
}
</style>
</head>
<body>
<p class="test">This paragraph contains a very long word,This paragraph contains a very long word,This paragraph contains a very long word,This paragraph contains a very long word,This paragraph contains a very long word</p>
</body>
</html> 有竞争才有进步嘛 有道理。。。 帮你顶下哈!! 学习学习。。。。。。。 不错,支持下,顺便学习下 不错不错,, 顶一下 啊,, 不错,学习支持一下
页:
[1]