cursor 状态 总结 this.style.cursor

使用

1、
<STYLE>
P { cursor : hand; }
</STYLE>
2、
<STYLE>
oBox.style.cursor = "url(" + Some_Uniform_Resource_Identifier + ")";
</STYLE>
3、
<P οnmοuseοver="this.style.cursor='hand'">
4、js   wraper为某对象ID
$("wraper").style.cursor='wait';

例子

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <STYLE>
	/*P { cursor : hand; }*/
	oBox.style.cursor = "url(" + Some_Uniform_Resource_Identifier + ")";
  </STYLE>
 </HEAD>
 
 <BODY>
  <p>
  /*正常鼠标 */
	cursor:auto; 
	/*十字鼠标 */
	cursor:crosshair;
	/*默认鼠标 */
	cursor:default;
	/*手*/
	cursor:pointer;
	/*移动鼠标 */
	cursor:move; 
	/*改变大小鼠标 */
	cursor:e-resize,ne-resize,nw-resize,n-resize,se-resize,sw-resize,s-resize,w-resize;
	/*文字鼠标 */
	cursor:text; 
	/*等待鼠标 */
	cursor:wait; 
	/*求助鼠标 */
	cursor:help;
  </p>
  <P οnmοuseοver="this.style.cursor='auto'">正常鼠标auto</p>
  <P οnmοuseοver="this.style.cursor='crosshair'">十字鼠标crosshair</p>
  <P οnmοuseοver="this.style.cursor='default'">默认鼠标default</p>
  <P οnmοuseοver="this.style.cursor='hand'">手hand</p>
  <P οnmοuseοver="this.style.cursor='help'">求助鼠标help</p>
  <P οnmοuseοver="this.style.cursor='move'">移动鼠标move</p>
  <P οnmοuseοver="this.style.cursor='pointer'">手pointer</p>
  
  <!--
  <P οnmοuseοver="this.style.cursor='e-resize,ne-resize,nw-resize,
			n-resize,se-resize,sw-resize,s-resize,w-resize'">改变大小鼠标</p>-->
  <P οnmοuseοver="this.style.cursor='text'">文字鼠标text</p>
  <P οnmοuseοver="this.style.cursor='wait'">等待鼠标wait</p>
  <p>======new======</p>
  <P οnmοuseοver="this.style.cursor='all-scroll'">all-scroll </p>
  <P οnmοuseοver="this.style.cursor='col-resize'">col-resize </p>
  <P οnmοuseοver="this.style.cursor='no-drop'">no-drop </p>
  <P οnmοuseοver="this.style.cursor='not-allowed'">not-allowed </p>
  <P οnmοuseοver="this.style.cursor='progress'">progress </p>
  <P οnmοuseοver="this.style.cursor='row-resize'">row-resize </p>
  <P οnmοuseοver="this.style.cursor='vertical-text'">vertical-text </p>
  <P οnmοuseοver="this.style.cursor='vertical-text'">url(uri) 用户自定义 cursor:url('#');#=光标文件地址(注意文件格式必须为.cur或.ani)。 </p>
 </BODY>
</HTML>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值