鼠标悬浮改变链接样式代码实例
分类:实例代码
分享一段代码实例,它实现了鼠标悬浮改变链接样式的功能。
代码实例如下:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.pipipi.net/" /> <title>前端教程网</title> <style> a { display:block; width:150px; height:30px; text-align:center; background:#ccc; line-height:30px; text-decoration:none; } a:hover { background:green; } </style> </head> <body> <a href="www.pipipi.net">前端教程网</a> </body> </html>
网站出售中,有意者加微信:javadudu