?? ◤css教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0040)http://www.rr365.net/edu-css/css104d.htm -->
<HTML><HEAD><TITLE>◤CSS教程.文本屬性--▃▄ 龍 人 網 絡 ▄▃</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="CSS教程,CSS技巧 " name=keywords>
<META
content=網頁制作教程:asp教程,ASP.net教程,XML教程,PHP教程,FrontpageXP教程,DreamWeaverMX教程,JSP教程,JavaScript教程,VBScript教程,CSS教程,FrontpageXP,DreamWeaverMX,JSP,JavaScript,VBScript,CSS,asp,ASP.net,XML,PHP相關技巧及資源
name=description><LINK href="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/style.css"
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY language=Javascript1.2
onmouseover="window.status='歡迎光臨【龍人網站】www.rr365.net,專業服務全為您!!!';return true"
onclick=dynOutline() ;>
<TABLE id=table1 width="100%">
<TBODY>
<TR>
<TD background="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo4.gif" colSpan=8
height=30> </TD></TR>
<TR>
<TD width=195 height=53><A href="http://www.rr365.net/index.htm"><IMG
height=53 alt=網站優化,網站排名
src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo-up.gif" width=195
border=0></A></TD>
<TD colSpan=7>
<H1 align=center>網頁制作教程:CSS教程</H1></TD></TR>
<TR>
<TD background="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo-bt.gif" height=31>
<P align=center><A
href="http://www.rr365.net/edu-webdesign/index.htm"><FONT
color=#000000>網頁制作教程</FONT></A></P></TD>
<TD align=middle bgColor=#e5ecf9><B><A
href="http://www.rr365.net/index.htm">首 頁</A></B></TD>
<TD align=middle bgColor=#e5ecf9>
<DIV><B><A
href="http://www.rr365.net/web-promotion.htm">網站推廣</A></B></DIV></TD>
<TD align=middle bgColor=#e5ecf9><B><A
href="http://www.rr365.net/webrestruction.htm">網站優化</A></B></TD>
<TD align=middle bgColor=#e5ecf9>
<DIV><B><A
href="http://www.rr365.net/agent/emarketing.htm">輕松代理</A></B></DIV></TD>
<TD align=middle bgColor=#e5ecf9><B><A
href="http://www.rr365.net/webhosting.htm">虛擬主機</A></B></TD>
<TD align=middle bgColor=#e5ecf9>
<DIV><B><A
href="http://www.rr365.net/vpp/domain.htm">域名注冊</A></B></DIV></TD>
<TD align=middle bgColor=#e5ecf9><B><A
href="http://www.rr365.net/webdesign.htm">網站建設</A></B></TD></TR></TBODY></TABLE>
<TABLE id=table2 width="100%">
<TBODY>
<TR>
<TD bgColor=#00ccff colSpan=2 height=10> </TD></TR>
<TR>
<TD vAlign=top width="23%" bgColor=#e5ecf9 rowSpan=5>
<P><IMG height=25 src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo6.gif"
width=25 border=0> <B><A href="http://www.rr365.net/edu-css/css.htm"><FONT
color=#ff0000>CSS教程</FONT></A></B></P>
<UL style="FONT-SIZE: 10pt; LINE-HEIGHT: 13pt">
<LI><A href="http://www.rr365.net/edu-css/css.htm">認識CSS</A>
<LI><A href="http://www.rr365.net/edu-css/css102.htm">語法</A>
<LI><A href="http://www.rr365.net/edu-css/css103.htm">偽類—動態鏈接</A>
<LI><A href="http://www.rr365.net/edu-css/css104.htm">CSS屬性</A>
<LI><A href="http://www.rr365.net/edu-css/css105.htm">CSS定位</A>
<LI>
<P style="LINE-HEIGHT: 13pt" align=left><A
href="http://www.rr365.net/edu-css/css106.htm">濾鏡</A> </P>
<LI>
<P style="LINE-HEIGHT: 13pt" align=left><A
href="http://www.rr365.net/edu-css/css107.htm">CSS結合JS的運用</A> </P>
<LI>
<P style="LINE-HEIGHT: 13pt" align=left><A
href="http://www.rr365.net/edu-css/css108.htm">如何在網頁中插入CSS</A>
</P></LI></UL>
<P><IMG height=25 src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo411.gif"
width=25 border=0> <FONT color=#000000><B><A
href="http://www.rr365.net/edu-css/css2.htm"><FONT
color=#008080>CSS技巧</FONT></A></B></FONT></P>
<P><IMG height=25 src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo411.gif"
width=25 border=0> <FONT color=#008080><B>CSS相關網站</B></FONT></P>
<UL style="FONT-SIZE: 10pt; LINE-HEIGHT: 13pt">
<LI><A href="http://www.w3.org/Style/CSS/" target=_blank>W3C之CSS規范</A>
<LI><A href="http://www.w3schools.com/css/default.asp" target=_blank>CSS
Tutorial</A> </LI></UL>
<P><IMG height=25 src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/logo411.gif"
width=25 border=0> <B><FONT color=#000000><A
href="http://www.rr365.net/edu-css/css4.htm"><FONT
color=#008080>CSS相關軟件</FONT></A></FONT></B></P>
<P> </P> </TD>
<TD width="77%">
<UL type=square>
<LI>
<P align=center><U><B><FONT size=4>CSS教程.CSS屬性 </FONT></B></U></P>
<P align=center><FONT size=4><B> </B></FONT><SPAN
style="FONT-SIZE: 11pt"> </SPAN></P>
<DIV align=center>
<TABLE id=table4 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD class=p2 vAlign=top>
<P class=p2 style="LINE-HEIGHT: 17pt"><FONT
color=#336633><B>3、文本屬性</B></FONT></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><FONT
style="FONT-SIZE: 11pt" color=#cc3399>※裝飾超鏈接</FONT></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><SPAN
style="FONT-SIZE: 11pt"> 網頁默認的鏈接方式是這樣的:未訪問過的鏈接是藍色文字并帶藍色的下劃線,訪問過的超級鏈接是深紫色的文字并帶深紫色的下劃線。如果您所有的網頁都是這種樣式,是不是很單調呢?</SPAN></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><SPAN
style="FONT-SIZE: 11pt"> 其實,利用文本屬性中的Text-decoration屬性就可以實現對超鏈接的修飾。我們先看下面的這段代碼:</SPAN></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><SPAN
style="FONT-SIZE: 11pt"> <FONT color=#006666><html>
<BR> <title>link css</title> <BR> <head>
<BR> <style> <BR> <!--</FONT><BR> <FONT
color=#cc33cc>//*定義偽類元素(a:),大括號內定義了前景色屬性和文本裝飾屬性,<BR> hover加上‘font-size’屬性目的是讓鼠標激活鏈接時改變字體*//</FONT>
<BR> <FONT
color=#006666>a:link{color:green;text-decoration:none}</FONT><BR> <FONT
color=#cc33cc>//*未訪問時的狀態,顏色為綠色(green),文本裝飾屬性(text-decoration)值<BR> 為沒有(none)*//</FONT>
<BR> <FONT
color=#006666>a:visited{color:red;text-decoration:none}</FONT><BR> <FONT
color=#cc33cc>//*訪問過的狀態,顏色為紅色(red),文本裝飾屬性值為沒有*//</FONT>
<BR> <FONT
color=#006666>a:hover{color:blue;text-decoration:overline;font-size:20pt}</FONT><BR> <FONT
color=#cc33cc>//*鼠標激活的狀態,顏色為藍色(blue),
文本裝飾屬性值為上劃(overline),<BR> 字體大小為20pt*//</FONT> <BR> <FONT
color=#006666>--> <BR> </style> <BR> </head>
<BR> <body> <BR> <p
style=“font-family:行書體;font-size:18pt”> <BR> <a
href=“http://www.rr365.net”>未訪問的鏈接</a></p></FONT><BR>
<FONT color=#cc33cc>//*加鏈接,顯示三種不同狀態,并且定義了鏈接文本的字體和大小*//</FONT>
<BR> </SPAN><FONT color=#006666><SPAN
style="FONT-SIZE: 11pt"><p> <a
href=“http://www.rr365.net”>訪問過的鏈接</a></p> <BR>
<p> <a
href=“http://www.rr365.net”>鼠標激活的鏈接</a></p> <BR>
</body> <BR> </html> </SPAN></FONT></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><SPAN
style="FONT-SIZE: 11pt"> 我們從例子中看到沒有訪問過的鏈接以綠色顯示,<A
href="http://www.rr365.net/edu-css/css.htm"><FONT
color=#000000>并</FONT></A>且去掉了下劃線;而訪問過的鏈接以紅色且沒有下劃線顯示;另外,當鼠標激活鏈接時,鏈接以藍色顯示,并且加上了上劃線。這種效果是怎么實現的呢?它除了運用了文本屬性中的text-decoration屬性,而且采用了偽類元素。<BR> 通過上面的代碼注釋,相信您應該對偽類元素有一個大概認識。實際上我們用到的這種偽類應當稱之為“錨偽類”,它規定了鏈接不同狀態下的效果。
</SPAN></P>
<P class=p2 style="LINE-HEIGHT: 17pt"><SPAN
style="FONT-SIZE: 11pt"> 怎么樣,是不是很簡單的就可以實現動態鏈接的效果,趕緊自己動手試一試吧!下一節我將向您介紹“容器”屬性。
</SPAN></P></TD></TR></TBODY></TABLE></DIV><BR></LI></UL></TD></TR>
<TR>
<TD>
<P
align=center>
<A href="http://www.rr365.net/edu-css/css104c.htm">上一節</A>|<A
href="http://www.rr365.net/edu-css/css104e.htm">下一節</A></P></TD></TR>
<TR>
<TD>
<HR width="75%" color=#e5ecf9>
<P align=center>網頁教程: <A
href="http://www.rr365.net/edu-asp/index.htm">ASP</A>| <A
href="http://www.rr365.net/edu-asp-net/asp-net.htm">ASP.net</A>| <A
href="http://www.rr365.net/edu-xml/xml.htm">XML</A>| <A
href="http://www.rr365.net/edu-php/php.htm">PHP4</A> | <A
href="http://www.rr365.net/edu-frontpage/frontpage.htm">FrontpageXP</A> |
<A
href="http://www.rr365.net/edu-dreamweaver/dreamweaver.htm">DreamWeaverMX</A></P>
<P
align=center>
<A href="http://www.rr365.net/edu-cplus/c.htm">C#</A>| <A
href="http://www.rr365.net/edu-jsp/jsp.htm">JSP</A> | <A
href="http://www.rr365.net/edu-javascript/javascript.htm">JavaScript</A> |
<A href="http://www.rr365.net/edu-vbscript/vbscript.htm">VBScript</A> | <A
href="http://www.rr365.net/edu-css/css.htm">CSS</A></P></TD></TR>
<TR>
<TD>
<HR width="50%" color=#e5ecf9>
<P> </P></TD></TR>
<TR>
<TD>
<FORM name=query0 action=http://www1.baidu.com/baidu method=get
target=_blank>
<DIV align=center><INPUT type=hidden value=baidu name=tn0> <A
href="http://www.baidu.com/"><IMG alt=Baidu
src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/baidu_logo.gif" align=bottom
border=0></A> <INPUT size=15 name=word0> <IFRAME border=0 name=I1
marginWidth=0 marginHeight=0
src="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/help1.htm" frameBorder=no width=0
scrolling=no height=0></IFRAME><INPUT type=submit value=百度搜索>
</DIV></FORM> </TD></TR></TBODY></TABLE>
<TABLE id=table3 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BORDER-BOTTOM: 1px solid" borderColor=#00ccff height=21> </TD></TR>
<TR>
<TD background="◤CSS教程_文本屬性1--▃▄ 龍 人 網 絡 ▄▃.files/tdbg.gif"
bgColor=#e5ecf9><P align=center><B><A
href="http://www.rr365.net/summary/aboutus.htm">關于我們</A>-<A
href="http://www.rr365.net/summary/paymethod.htm">付款方式</A>-<A
href="http://www.rr365.net/helpcenter/helpcenter.htm">幫助中心</A>-<A
href="http://www.rr365.net/agent/agent.htm">輕松代理</A>-<A
href="http://www.rr365.net/sitemap.htm">網站地圖</A>-<A
href="mailto:support@rr365.net">聯系我們</A></B></P></TD></TR></TBODY></TABLE></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -