Tôi đã tạo ra một khung trong html sử dụng các thẻThay đổi con trỏ chuột trong trang web
<frame></frame>
. Có cách nào tôi có thể thay đổi con trỏ chuột khi chuột vào khung.
Tôi đã tạo ra một khung trong html sử dụng các thẻThay đổi con trỏ chuột trong trang web
<frame></frame>
. Có cách nào tôi có thể thay đổi con trỏ chuột khi chuột vào khung.
Đây là mã css cho con trỏ.
Cố gắng:
<frame style="cursor:auto"></frame>
thay vì auto
bạn có thể sử dụng bất cứ điều nào sau đây:
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
Sử dụng CSS:
.myClass { cursor: pointer; }
#myId { cursor: pointer; }
Hoặc một yếu tố entrie (s) s:
frame { cursor: pointer; }
p { cursor: pointer; }
Bạn cũng có thể thử với Inline-CSS:
Hoặc một cái gì đó như này:
<div id="clickMe" onclick="alert('I\'m clicked!'); return false;" style="cursor: pointer;">I'm a Fake-Link!</a>
Sử dụng cursor CSS tài sản
<style>
.mousePointer
{
cursor: pointer;
}
</style>
<frame class="mousePointer"></frame>
Có là tài sản css con trỏ : http://www.w3schools.com/cssref/pr_class_cursor.asp Bạn cũng có thể làm: cursor:url(/mousePointer.cur)
Bạn có thể làm điều gì đó như thế này: -
HTML
<iframe class="pointer"></iframe>
CSS
.pointer
{
cursor: pointer;
}
các tùy chọn khác của biến đổi con trỏ là: -
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
Cảm ơn bạn Dor Cohen –