Cursor的各种效果
总结之后的Cursor的各种效果:
http://sandbox.runjs.cn/show/bbwoyn0c
http://css-cursor.techstream.org/
源代码如下:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>cursor</title>
<style>
*{
margin: 0;
padding: 0;
}
#wrap{
width:1320px;
margin:0px auto;
font-family: monospace;
font-size: 18px;
}
.caption{
font-size: 30px;
text-align: center;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
div.listcur{
width:200px;
height:100px;
background-color: #ccc;
box-shadow:4px 4px 10px #ccc;
float: left;
text-align: center;
line-height: 100px;
margin:10px;
}
</style>
</head>
<body>
<div id="wrap"><div class="caption">Cursor</div></div>
<script>
;(function(globel,doc){
var curarr = ['auto','default','none','pointer','progress',
'help','text','cell','crosshair','alias','context-menu','vertical-text',
'copy','move','no-drop','not-allowed','all-scroll','col-resize','row-resize',
'nesw-resize','nwse-resize', 'n-resize','e-resize','s-resize','w-resize',
'ns-resize','ew-resize','ne-resize','nw-resize','sw-resize','se-resize', 'wait',
'grab','grabbing','zoom-in','zoom-out'];
var wrap = doc.getElementById('wrap');
var length = curarr.length;
var d=document.createDocumentFragment(); //创建了一虚拟的节点对象
var i = length;
for(;i--;){
var div = doc.createElement('div');
div.textContent = curarr[i];
div.className = 'listcur';
style = curarr[i].slice(0,1).toUpperCase()+curarr[i].slice(1).toLowerCase()+';';
div.style.cursor = curarr[i];
div.style.cursor = '-webkit-'+curarr[i] ;
div.style.cursor = '-moz-'+curarr[i] ;
d.appendChild(div);
}
wrap.appendChild(d);
}(this,document))
</script>
</body>
</html>
Cursor的各种效果的更多相关文章
- cursor 手型样式
cursor:hand 与 cursor:pointer 的效果是一样,都像手形光标.但用FireFox浏览时才注意到使用cursor:hand在FireFox里并被支持.cursor:hand :I ...
- cursor:hand与cursor:pointer的区别介绍
cursor:hand 与 cursor:pointer 的效果是一样的,都像光标指向链接一样,光标变成手行. cursor:hand :IE完全支持.但是在firefox是不支持的,没有效果. cu ...
- 兼容ie\firefox\chrome的cursor
cursor:hand 与 cursor:pointer 的效果是一样,都像手形光标. 但用FireFox浏览时才注意到使用cursor:hand在FireFox.chorme里并被支持.cursor ...
- cursor变换
cursor:hand 与 cursor:pointer 的效果是一样,都像手形光标.但用FireFox浏览时才注意到使用cursor:hand在FireFox.chorme里并被支持. cursor ...
- CSS中cursor的pointer 与 hand-备
cursor:hand 与 cursor:pointer 的效果是一样,都像手形光标(在浏览器上时 鼠标会显示成 小手 ).但用FireFox浏览时才注意到使用cursor:hand在FireFo ...
- CSS中cursor的pointer 与 hand(转)
CSS中cursor的pointer 与 hand 转载 2015年12月25日 16:18:36 标签: cursorpointer / cursorhand 1781 cursor:hand 与 ...
- cursor: hand和cursor:pointer的区别
cursor:hand 与 cursor:pointer 的效果是一样的,都像光标指向链接一样,光标变成手行. cursor:hand :IE完全支持.但是在firefox是不支持的,没有效果. cu ...
- htnl5中设置文本单行显示,超出部分打省略号,鼠标移到文本时alt出全部文本内容
Html代码: 1.<span class="my-span" title="无数无数无数无数无数">机构</span> Css样式: ...
- 简单的jquery拖曵原理js特效实例
<!DOCTYPE html> <html> <title>简单拖曵原理实例</title> <script language="jav ...
随机推荐
- Android破解之北斗手机定位系统
我想破解GIS相关的安卓程序,于是找到了这个北斗手机定位系统,且不论它是否能定位,定位精度有多高,本文件只进行破解分析. 在模拟器中安装,输入手机号码,点击"卫星定位",它会一级一 ...
- NPOI导出数据到Excel
NPOI导出数据到Excel 前言 Asp.net操作Excel已经是老生长谈的事情了,可下面我说的这个NPOI操作Excel,应该是最好的方案了,没有之一,使用NPOI能够帮助开发者在没有安装微 ...
- SharePoint 自定义WebPart之间的连接
1.创建SharePoint解决方案,添加两个WebPart分别用来发送和接收: 2.发送值的WebPart需要继承自IWebPartField(当然,根据需要还可以选择IWebPartField,I ...
- 转:在浏览器地址栏按回车、F5、Ctrl+F5刷新网页的区别
转:http://www.cnblogs.com/mofish/archive/2012/06/08/2541604.html 不少同学问,不都是刷新吗?还有什么区别?其实,还是有的. 其中,在地址栏 ...
- Sharepoint学习笔记—习题系列--70-573习题解析 --索引目录
Sharepoint学习笔记—习题系列--70-573习题解析 为便于查阅,这里整理并列出了我前面播客中的关于70-573习题解析系列的所有问题,有些内容可能会在以后更新, ...
- Sharepoint学习笔记—习题系列--70-573习题解析 -(Q81-Q84)
Question 81You need to create a Web Part that creates a copy of the out-of-the-box Contribute permis ...
- PHP读取Excel文件内容
PHP读取Excel文件内容 项目需要读取Excel的内容,从百度搜索了下,主要有两个选择,第一个是PHPExcelReader,另外一个是PHPExcel. PHPExcelReader比较 ...
- IOS沙盒
可以先在程序打印沙盒路径: NSLog(@"路径%@",NSHomeDirectory()); ------------------------------------------ ...
- mac上的替代软件
文本编辑器:bbedit 视频播放器:Movist 图片浏览:LilyView 远程桌面:Remotix 虚拟主机:parallels desktop svn client:cornerstone o ...
- setInterval setTimeout clearInterval
setTimeout() 只执行 code 一次.如果要多次调用,请使用 setInterval() 或者让 code 自身再次调用 setTimeout(). //第一次load的时候就先刷新一次 ...