<html>
<head>
<title>按鈕滑鼠經過變色</title>
<style type="text/css">
.over {color:yellow; background: navy}
.down {color:yellow; background: navy; font-style: italic}
</style>
</head>
<body>
<input type="Button"
onMouseOver="this.className='over';"
onMouseOut="this.className='';"
onMouseDown="this.className='down';"
onMouseUp="this.className='over';"
value="按我!!"
onClick="this.value='被按了!'" name="Button">
</body>
</html>

arrow
arrow
    文章標籤
    CSS mouse over mouse down
    全站熱搜

    痞客興 發表在 痞客邦 留言(0) 人氣()