ITeye博客

鼠标指针样式自定义控制

keimon · 2013-09-22 11:17 · div-css · Web前端 · CSS · Markdown

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.box{cursor: url(zoom.cur), auto; }
.cursor_pre {cursor: url(pre.cur), auto;}
.cursor_next {cursor: url(next.cur), auto;}

.wrap{overflow:hidden; zoom:1; width:206px;}
.pre{width:50px; height:100px; border:1px solid #000; float:left;}
.next{width:50px; height:100px; border:1px solid #000; float:right;}
.content{width:100px; height:100px; border:1px solid #000; float:left;}
</style>
</head>

<body>
<div class="wrap">
   <div class="cursor_pre pre">
       向前
   </div>
   <div class="box content">
       内容
   </div>
   <div class="cursor_next next">
       向后
   </div>
</div>
</body>
</html>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。