9

我使用 html 创建了一个框架

<frame></frame>

标签。有没有办法可以在鼠标进入框架时更改鼠标指针。

4

5 回答 5

12

你可以在这里找到。

这是光标的CSS。

尝试:

<frame style="cursor:auto"></frame>

而不是auto您可以使用以下任何一种:

auto    Default. The browser sets a cursor
crosshair   The cursor render as a crosshair
default The default cursor
e-resize    The cursor indicates that an edge of a box is to be moved right (east)
help    The cursor indicates that help is available
move    The cursor indicates something that should be moved
n-resize    The cursor indicates that an edge of a box is to be moved up (north)
ne-resize   The cursor indicates that an edge of a box is to be moved up and right (north/east)
nw-resize   The cursor indicates that an edge of a box is to be moved up and left (north/west)
pointer The cursor render as a pointer
progress    The cursor indicates that the program is busy (in progress)
s-resize    The cursor indicates that an edge of a box is to be moved down (south)
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)
text    The cursor indicates text
w-resize    The cursor indicates that an edge of a box is to be moved left (west)
wait    The cursor indicates that the program is busy
于 2013-02-11T07:50:08.490 回答
7

使用光标CSS 属性

<style>
.mousePointer
{
    cursor: pointer;
}
</style>

<frame class="mousePointer"></frame>
于 2013-02-11T07:50:21.130 回答
5

有css光标属性:http ://www.w3schools.com/cssref/pr_class_cursor.asp 你也可以这样做:cursor:url(/mousePointer.cur)

于 2013-02-11T07:50:54.427 回答
4

使用 CSS:

.myClass { cursor: pointer; }
#myId { cursor: pointer; }

或条目元素:

frame { cursor: pointer; }
p { cursor: pointer; }

您也可以尝试使用 Inline-CSS:

或者是这样的:

<div id="clickMe" onclick="alert('I\'m clicked!'); return false;" style="cursor: pointer;">I'm a Fake-Link!</a>
于 2013-02-11T07:49:58.453 回答
2

你可以做这样的事情: -
HTML

  <iframe class="pointer"></iframe>

CSS

   .pointer
          {
            cursor: pointer;
          }

更改光标的其他选项是:-

 auto
 crosshair
 default
 e-resize
 help
 move
 n-resize
 ne-resize
 nw-resize
 pointer
 progress
 s-resize
 se-resize
 sw-resize
 text
 w-resize
 wait
于 2013-06-08T07:47:00.367 回答