一般我們在瀏覽網頁的時候,我們的鼠標只有三種樣式,分別爲text(遇到文本內容時,I),pointer(遇到超鏈接,手指形狀),和default(沒遇到實際內容,箭頭形狀),如果我們想要改變鼠標的懸停樣式,我們該怎麼辦呢?
下面是一個簡單的例子
<html><head>
<style type="text/css">
input.username:hover {cursor:move}<!--此處的move可以換爲想要的樣式的屬性值-->
</style>
</head>
<body>
<p><b><input name="username" id="username" class="username"/></b></p>
</body>
</html>
move可以修改爲以下圖片的值