[英]Change the mouse pointer in a webpage
我用html在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屬性
<style>
.mousePointer
{
cursor: pointer;
}
</style>
<frame class="mousePointer"></frame>
有css cursor屬性: http : //www.w3schools.com/cssref/pr_class_cursor.asp你也可以這樣做: cursor:url(/mousePointer.cur)
使用CSS:
.myClass { cursor: pointer; }
#myId { cursor: pointer; }
或者一個entrie元素:
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>
你可能會這樣做: -
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.