当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS cursor属性
The cursor property specifies the type of cursor to be displayed when pointing on an element.
cursor(游标)属性可以指定鼠标指向一个元素时显示的类型
Inherited: Yes
继承性:Yes
h2 { cursor: crosshair } p |
Value值 | 描述 |
---|---|
url | The url of a custom cursor to be used. Note: Always define a generic cursor at the end of the list in case none of the url-defined cursors can be used |
default | The default cursor (often an arrow) 默认的游标状态(通常为一个箭头) |
auto | The browser sets a cursor 浏览器设置一个游标 |
crosshair | The cursor render as a crosshair 游标表现为十字准线 |
pointer | The cursor render as a pointer (a hand) that indicates a link 游标以暗示(手指)的形式来表明有一个连接 |
move | The cursor indicates something that should be moved 游标暗示一些东西应该被移动 |
e-resize | The cursor indicates that an edge of a box is to be moved right (east) box边缘可向右(东)边移动 |
ne-resize | The cursor indicates that an edge of a box is to be moved up and right (north/east) 游标暗示box的边缘可向右上方移动(东北方向) |
nw-resize | The cursor indicates that an edge of a box is to be moved up and left (north/west) 边缘可向左上方移动(西北) |
n-resize | The cursor indicates that an edge of a box is to be moved up (north) 边缘可向上移动(北) |
se-resize | The cursor indicates that an edge of a box is to be moved down and right (south/east) 边缘可向右下方移动(东南) |
sw-resize | The cursor indicates that an edge of a box is to be moved down and left (south/west) 边缘可向左下方移动(西南) |
s-resize | The cursor indicates that an edge of a box is to be moved down (south) 边缘可向下方移动(南) |
w-resize | The cursor indicates that an edge of a box is to be moved left (west) 边缘可向左移动(西) |
text | The cursor indicates text 游标暗示当前所处位置为文字内容 |
wait | The cursor indicates that the program is busy (often a watch or an hourglass) 游标暗示当前程序正忙(一般为一块表或是一个沙漏) |
help | The cursor indicates that help is available (often a question mark or a balloon) 游标暗示当前位置可得到帮助(一般为问号或是气球) |
Notes in IE:
|