HTML Code:
< Body > < class= "Anniu" href= "http://www.baidu.com/"> Baidu a bit </a></body>
CSS Code:
/*CSS Document*/. Anniu{Display:Block;width:120px;Height:40px;Background-color:#333333;Color:#FFFFFF;text-align:Center;font-size:18px;Line-height:40px;Border-radius:25px;Border:None;Box-shadow:None;text-decoration:None;transition:Box-shadow 0.5s;-webkit-transition:Box-shadow 0.5s;}. Anniu:hover{Box-shadow:0px 0px 5px 1px #808080;}. Anniu:active{Box-shadow:0px 0px 5px 1px #FF0000;}
Detailed
Link Style:
- A:link-Normal, not visited links
- A:visited-links that have been visited by the user
- A:hover-When the user mouse is placed on the link
- A:active-the moment the link was clicked
Transition properties:
1. Specify the Name,transition effect of CSS Properties
2, transition effect need to specify how many seconds or milliseconds to complete
3, specify the speed curve of transition effect
4, the definition of transition effect when the beginning
Nice buttons (CSS transitions and link styles)