2013-02-11 11 views
8

ich einen Rahmen in HTML erstellt haben diein einer Webseite

<frame></frame> 

Tags. Gibt es eine Möglichkeit, den Mauszeiger zu ändern, wenn die Maus den Rahmen betritt.

Antwort

11

You may find here.

Dies ist die CSS für den Cursor.

Versuchen Sie:

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

statt auto können Sie jeden der folgenden verwenden:

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

Danke Dor Cohen –

4

Mit CSS:

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

Oder ein entrie Element (e) s:

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

Sie können auch versuchen, mit Inline-CSS:

Oder so ähnlich dies:

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

Verwenden Sie die cursor CSS-Eigenschaft

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

<frame class="mousePointer"></frame> 
2

Sie etwas tun können: -
HTML

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

CSS

.pointer 
      { 
      cursor: pointer; 
      } 

die anderen Optionen des Cursors zu ändern sind: -

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