1. Case CSS Code
- <style>
- . DIVCSS5 a:link{Color: #F00}/* link defaults to Red */
- . DIVCSS5 a:hover{Color: #000}/* mouse hover Black */
- . DIVCSS5 a:active{Color: #03F}/* mouse click and Release Blue */
- . DIVCSS5 a:visited{Color: #F0F}/* visited as Pink */
- /* Divcss5 object within a hyperlink setting style */
- </style>
2. Case HTML code
- <div class="DIVCSS5">
- DIVCSS5 about
- <a href="http://www.divcss5.com/shili/s57.shtml">css a style </a> Case
- </div>
===================
Own case,
/* Navigation bar */
. menu a:link{color:white}/* link defaults to white */
. menu a:hover{color:red}/* Mouse hover white */
. menu a:active{color:yellow}/* Mouse click and Release white */
. menu a:visited{color:black}/* Accessed as white */
The above is a CSS file
<ul class= "menu" id= " Menu" > |
|
<li ><a href=company.php?id=802> home </a></li> |
|
<li ><a href=company_introduction.php?id=802> Company Introduction </a></li> |
|
<li ><a href=company_news.php?id=802> information US </a></li> |
|
<li ><a href=company_xx.php?id=802> renovation site </a></li> |
|
<li ><a href=company_store.php?id=802> Merchandise show </a></li> |
|
<li class= "banner_li" ><a href=company_team.php?id=802> Excellent staff </a></ li> |
|
|
|
</ul> |
Define the navigation bar hyperlink style in CSS