CSS3文本效果

当前位置 : 首页 > 网页制作 > CSS > CSS3文本效果

CSS3文本效果

来源: 作者: 时间:2016-01-20 09:22
CSS3文本效果实例1:文本阴影:!DOCTYPE htmlhtmlheadmeta charset=utf-8titleCSS3 自动换行/titlestyle p.test{width:11em;border:1px solid #000000;word-wrap:break-word;}/style/he...
CSS3文本效果实例1:
文本阴影:
 
<!DOCTYPE >
<html>
<head>
<meta charset="utf-8">
<title>3 自动换行</title>
<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: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p>
</body>
</html>

 

 
实例二:CSS3自动换行
 
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3 自动换行</title>
<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: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p>
</body>
</html>

 

 
Tag:
上一篇:CSS3-图片悬停抖动
下一篇:CSS盒子效果
网友评论

<