02- 应用于页之内部定义 style 元素一<html> <head> <title> 无标题文档</title> <style type="text/css"> <!-- a:link{color:#000000; font-size:16px; text-decoration:none;} /* 未访问过的链接*/ a:hover{color : #FF0000; font-size:16px; text-decoration:underline;} /* 鼠标经过的链接*/ a:active{color:#0000ff; font-size:16px; text-decoration:none;} /* 激活的链接*/ a:visited{color:#000000; font-size:16px; text-decoration:none;} /* 访问过的链接*/ --> </style> </head> <body> <table cellpadding="0" cellspacing="0" border="0"><tr><td><a href="" target="_blank"> 雅虎</a></td></tr></style> </body> </html> 02- 应用于页之内部定义 style 元素二<html> <head> <title> 无标题文档</title> <style type="text/css"> <!-- .he a:link{color:#000000; font-size:16px; text-decoration:none;} /* 未访问过的链接*/ .he a:hover{color : #FF0000; font-size:16px; text-decoration:underline;} /* 鼠标经过的链接*/ .he a:active{color:#0000ff; font-size:16px; text-decoration:none;} /* 激活的链接*/ .he a:visited{color:#000000; font-size:16px; text-decoration:none;} /* 访问过的链接*/ --> </style> </head> <body> <table cellpadding="0" cellspacing="0" border="0"><tr><td class="he"><a href="" target="_blank"> 雅虎</a></td></tr> <tr><td class="he"><a href="" target="_blank"> 百度</a></td></tr> </style> </body> </html> 如何通过伪类这种特殊的类选择符来对链接的不同状况下的链接样式定义, 并且可以定义多种的链接样式。 02- 应用于页之内部定义 style 元素三<html> <head> <title> 无标题文档</title> <style type="text/css"> <!-- .he a:link {color:#000000; font-size:16px; text-decoration:none;} /* 未访问过的链接*/ .he a:hover {color : #FF0000; font-size:16px; text-decoration:underline;} /* 鼠标经过的链接*/ .he a:active {color:#0000ff; font-size:16px; text-decoration:none;} /* 激活的链接*/ .he a:visited {color:#000000; font-size:16px; text-decoration:none;} /* 访问过的链接*/ .she a:link {color:#006600; font-size:16px; text-decoration:none;} .she a:hover {color : #FF0000; font-size:16px; text-decoration:underline;} .she a:active {color:#00099ff; font-size:16px; text-decoration:none;} .she a:visited {color:#FF6600; font-size:16px; text-decoration:none;} --> </style> </head> <body> <table cellpadding=
CSS应用于页之内部定义style元素 来自淘豆网www.taodocs.com转载请标明出处.