я создал фрейм в HTML с использованием тегов вИзменение указателя мыши на веб-странице
<frame></frame>
. Есть ли способ изменить указатель мыши, когда мышь входит в рамку.
я создал фрейм в HTML с использованием тегов вИзменение указателя мыши на веб-странице
<frame></frame>
. Есть ли способ изменить указатель мыши, когда мышь входит в рамку.
Это 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
Использование 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>
Используйте cursor CSS свойство
<style>
.mousePointer
{
cursor: pointer;
}
</style>
<frame class="mousePointer"></frame>
Существует свойство CSS курсор : http://www.w3schools.com/cssref/pr_class_cursor.asp Вы можно также сделать: cursor:url(/mousePointer.cur)
Вы можете сделать что-то вроде этого: -
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
Спасибо, Дор Коэн –