zoukankan      html  css  js  c++  java
  • 控制用户界面的样式

    控制用户界面的样式

    在网页上,鼠标平时呈箭头形,指向链接时成为手形,等待网页下载时成为沙漏形……这似乎是约定俗成的。虽然这样的设计能使我们知道浏览器现在的状态或是可以做什么,但这些好像还不能完全地满足我们的需要。就拿链接来说,可以是指向一个帮助文件,也可以是向前进一页或是向后退一页,针对如此多的功能光靠千篇一律的手形鼠标是不能说明问题的。值得庆幸的是,CSS提供了多达13种的鼠标形状,供我们选择。

    基本格式如下:

    cursor:鼠标形状参数

    CSS鼠标形状参数表:

    CSS代码

    鼠标形状

    style="cursor:hand"

    手形

    style="cursor:crosshair"

    十字形

    style="cursor:text"

    文本形

    style="cursor:wait"

    沙漏形

    style="cursor:move"

    十字箭头形

    style="cursor:help"

    问号形

    style="cursor:e-resize"

    右箭头形

    style="cursor:n-resize"

    上箭头形

    style="cursor:nw-resize"

    左上箭头形

    style="cursor:w-resize"

    左箭头形

    style="cursor:s-resize"

    下箭头形

    style="cursor:se-resize"

    右下箭头形

    style="cursor:sw-resize"

    左下箭头形

  • 相关阅读:
    顶点与片段着色器的例子
    Unity cg vertex and fragment shaders(二)
    Unity cg vertex and fragment shaders(一)
    C#线程(一)
    shell脚本变量定义注意别跟系统变量重名了……
    VLC编译问题
    VIM技巧:翻页
    Linux命令:cd
    Linux设置:环境变量
    VIM技巧:显示行号
  • 原文地址:https://www.cnblogs.com/cnaspnet/p/308302.html
Copyright © 2011-2022 走看看