?? csstx01.htm
字號(hào):
<html>
<head>
<title>洪恩在線 - CSS特效賞析</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pub/css/home.css">
<link rel="stylesheet" href="/pc/homepage/homepage.css">
<meta name="keywords" content="電腦樂園,電腦,樂園,交互教程,交互,教程,教育,網(wǎng)頁(yè)制作,CSS,特效,賞析">
<style>
<!--
.bigchange{color:blue;font-weight:bolder;font-size:225%;
letter-spacing:4px;background:yellow;}
.start{color:yellow;background:navy;}
-->
</style>
</head>
<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">
<!--頂部開始-->
<script language="Javascript" src="/pub/js/head.js"></script>
<!--頂部結(jié)束-->
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#000000"><font color="#FF9966">當(dāng)前位置</font>:<a href="/default.htm" class="under">洪恩在線</a>
-> <a href="/pc/index.htm" class="under">電腦樂園</a> -> CSS特效賞析</font></td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
<tr>
<td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" class="p1">
<br>
<table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" height="20">
<tr bgcolor="000099" valign="middle">
<td width="115" align="center" class="p2"><b><font color="#FFFFFF">CSS特效賞析</font></b></td>
<td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
<td height="20" bgcolor="#E8E8E8" width="17"> </td>
</tr>
</table>
<p class="p1" style="line-height:17pt" align="left"> 1.<a href="csstx01.htm">動(dòng)態(tài)改變樣式</a><br>
2.<a href="csstx02.htm">動(dòng)態(tài)可視化效果</a><br>
3.<a href="csstx03.htm">動(dòng)態(tài)濾鏡顯示</a><br>
4.<a href="csstx04.htm">Blentrans屬性</a><br>
5.<a href="csstx05.htm">Revealtrans屬性</a><br>
6.<a href="csstx06.htm">動(dòng)態(tài)Glow屬性</a><br>
7.<a href="csstx07.htm">顯示和隱藏</a><br>
8.<a href="csstx08.htm">兼容兩種瀏覽器</a><br>
9.<a href="csstx09.htm">移動(dòng)對(duì)象</a><br>
10.<a href="csstx10.htm">對(duì)象的滑動(dòng)</a><br>
11.<a href="csstx11.htm">鍵盤控制對(duì)象</a><br>
12.<a href="csstx12.htm">鼠標(biāo)控制對(duì)象</a><br>
13.<a href="csstx13.htm">Clip屬性的應(yīng)用</a><br>
14.<a href="csstx14.htm">動(dòng)態(tài)文字變換</a><br>
15.動(dòng)態(tài)改變頁(yè)面樣式<br>
16.動(dòng)態(tài)時(shí)鐘控制<br>
17.倒計(jì)時(shí)<br>
18.動(dòng)態(tài)刷新<br>
</p>
<p align="center" class=p1> <a href=/pc/bin/msg.pl?file_id=k_csstx target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請(qǐng)您留言" border="0"><br>
談?wù)勀目捶?lt;/a> <br>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_csstx.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發(fā)言")
</script>
</p>
<p class="p1" style="line-height:17pt" align="left"> </p>
</td>
<td width=1 bgcolor=#0586D7 height="123"><img src="/pc/img/blank.gif" width="1" height="1">
</td>
<td width=15 background="/pc/img/line.gif">
<p> </p>
</td>
<td valign="top" background="/pc/img/line.gif" width="584" height="123" class="p2">
<p align="center"><b><span class="p3"><br>
<font color="#3366CC">CSS特效賞析</font></span></b></p>
<p align="right" class="p1"> <a href="csstx02.htm">下一實(shí)例</a> </p>
<hr color=blue size=1>
<p class="p2" style="line-height:17pt"> 從現(xiàn)在開始,我將向您介紹一系列的CSS作品,這些大都是CSS與JavaScript結(jié)合起來(lái)產(chǎn)生的特效。您可以通過對(duì)這些特效的欣賞,進(jìn)一步領(lǐng)略到CSS的強(qiáng)大功能。</p>
<p class="p2" style="line-height:17pt"> <b><font color="#336633">1、動(dòng)態(tài)改變樣式</font></b></p>
<p class="p2" style="line-height:17pt"> 我們先來(lái)看一個(gè)較簡(jiǎn)單的特效,這里只是用到了屬性和鼠標(biāo)事件。 </p>
<p class="p2" style="line-height:17pt"> <font color="#CC3399">請(qǐng)把鼠標(biāo)移到藍(lán)色背景的文字下面。</font><br>
我們使用“class”類屬性來(lái)改變文檔的樣式。 <span onMouseOver="this.className='bigchange'"
onMouseOut="this.classname='start'"
class="start" style="cursor:hand">放大這段文本。</span></p>
<p class="p2" style="line-height:17pt"> 這個(gè)例子的代碼是這樣的:</p>
<p class="p2" style="line-height:17pt"> <html><br>
<head> <br>
<title>change style</title> <br>
<style> <br>
<!-- <br>
.bigchange{color:blue;font-weight:bolder;font-size:225%; <br>
letter-spacing:4px;background:yellow;}<br>
<font color="#CC3399">//*定義bigchange類的字體的顏色、粗細(xì)、大小,字間距,背景色*//</font><br>
.start{color:yellow;background:navy;} <br>
<font color="#CC3399">//*定義start類的字體的顏色和背景色*//</font><br>
--> <br>
</style> <br>
</head> <br>
<body> <br>
<h1>動(dòng)態(tài)改變樣式</h1> <br>
<p>請(qǐng)把鼠標(biāo)移到藍(lán)色背景的文字下面。</p> <br>
<p>我們使用"class"類屬性來(lái)改變文檔的樣式。 <br>
<span onmouseover="this.className='bigchange'" <br>
onmouseout="this.classname='start'" class="start" <br>
style="cursor:hand"><br>
放大這段文本。 </span> </p> </body><br>
<font color="#CC3399">//*定義鼠標(biāo)觸發(fā)事件,當(dāng)鼠標(biāo)放上去的時(shí)候,區(qū)域內(nèi)以bigchange類的格式顯示,<br>
當(dāng)鼠標(biāo)離開的時(shí)候,以start類顯示*//</font><br>
</html></p>
<p class="p2" style="line-height:17pt"> 這個(gè)例子很簡(jiǎn)單,容易理解,就不多說(shuō)什么了,下一節(jié)將向您介紹一個(gè)動(dòng)態(tài)顯示的例子。
</p>
<p class="p2" style="line-height:17pt"> </p>
<hr color=blue size=1>
<p class="p1" align="right"> <a href="csstx02.htm">下一實(shí)例</a> </p>
<p> </p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_csstx target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請(qǐng)您留言" border="0"><br>
談?wù)勀目捶?lt;/a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_csstx.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發(fā)言")
</script>
</p>
<p> </p>
</td>
<td width=15 background="/pc/img/line.gif">
<p> </p>
</td>
</tr>
</table>
<!--底部開始-->
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部結(jié)束-->
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -