CSS3 ??? ??
CSS3 ??? ??
CSS3?? ? ?? ??? ??? ??? ???? ????.
? ???? ?? ??? ??? ?? ????.
text-shadow
box-shadow
text-overflow
word-wrap
word-break
CSS3 text Shadow
CSS3??? text-shadow ??? ??? ???? ?????.
?? ???, ?? ???, ?? ?? ? ??? ??? ?????.
?
??? ???? ?????:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> h1 { text-shadow: 5px 5px 5px #FF0000; } </style> </head> <body> <h1>文本陰影效果!</h1> </body> </html>
????? ???? ??? ???
CSS3? Shadow ??
CSS3 Box -Shadow ??? Box Shadow ????? ?????. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文網(wǎng)(php.cn)</title>
<style>
div
{
width:300px;
height:100px;
background-color:yellow;
box-shadow: 10px 10px 5px #ff2332;
}
</style>
</head>
<body>
<div>盒子陰影</div>
</body>
</html>
????? ???? ??? ???.
? ??? ???. CSS3 ??? ???? ??? ???? ???? ????? ???? ??? ?????. ????? ???? ??? ???. CSS3? ? ?? ??? ?? ??? ? ??? ?? ??? ??? ?????. CSS3, ?? ?? ??? ???? ???? ??? ? ??? ? ????. ??? ??? ???? ???? ???????. ????? ???? ??? ???. CSS3 ?? ?? CSS3 ?? ?? ??? ? ?? ??? ?????: CSS ??? ??? ????: ????? ???? ??? ???<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文網(wǎng)(php.cn)</title>
<style>
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 5px #d93bb3;
}
</style>
</head>
<body>
<div>這是一個(gè)帶有模糊效果的陰影</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文網(wǎng)(php.cn)</title>
<style>
div.test
{
white-space:nowrap;
width:12em;
overflow:hidden;
border:1px solid #000000;
}
</style>
</head>
<body>
<p>以下 div 容器內(nèi)的文本無(wú)法完全顯示,可以看到它被裁剪了。</p>
<p>div 使用 "text-overflow:ellipsis":</p>
<div class="test" style="text-overflow:ellipsis;">This is some long text that will not fit in the box</div>
<p>div 使用 "text-overflow:clip":</p>
<div class="test" style="text-overflow:clip;">This is some long text that will not fit in the box</div>
<p>div 使用自定義字符串 "text-overflow: >>"(只在 Firefox 瀏覽器下有效):</p>
<div class="test" style="text-overflow:'>>';">This is some long text that will not fit in the box</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文網(wǎng)(php.cn)</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>