css自定义鼠标指针图标代码实例
分类:实例代码
有时候感觉自带的css指针图标不够美观,需要自定义指针图标。
下面就分享一段能够实现此功能的代码实例。
代码如下:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.pipipi.net/" /> <title>前端教程网</title> <style> * { margin:0px; padding:0px; } div { width:300px; height:200px; background:#ccc; margin:0px auto; cursor:url("data/attachment/common/17/common_43_icon.jpg"), default; } </style> </head> <body> <div></div> </body> </html>