2013-02-11 38 views
8

我創建使用在網頁中

<frame></frame> 

標籤HTML框架更改鼠標指針。 有沒有一種方法可以在鼠標進入框架時更改鼠標指針。

回答

11

You may find here.

這是光標的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 
+3

謝謝你Dor Cohen – 2013-02-11 07:54:06

4

使用CSS:

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

或entrie元素(S)S:

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

你也可以用內聯CSS嘗試:

或者類似的東西這個:

<div id="clickMe" onclick="alert('I\'m clicked!'); return false;" style="cursor: pointer;">I'm a Fake-Link!</a> 
7

使用cursor CSS屬性

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

<frame class="mousePointer"></frame> 
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