為什么光標移至按鈕上時沒有變成手型
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
? <script type="text/javascript">
? ? function openWindow(){
? ? ? ? var mychar=confirm("Open the window?");
? ? ? ? if(mychar==true){
? ? ? ? ? ? var mywindow=prompt("Please write the website:","http://www.ipsousou.com/");
? ? ? ? ? ? if(mywindow!=null){
? ? ? ? ? ? window.open(mywindow,'_blank','width=400,height=500,menubar=no,toolbar=no');
? ? ? ? ? ? }
? ? ? ? }
? ? }
? </script>?
?</head>?
?<body>?
?<input name="button" type="button" onClick="openWindow()" value="新窗口打開網站"/>?
?</body>
</html>
2016-11-20
加入style="cursor:pointer"? ??
<input name="button" type="button" onClick="openWindow()" value="新窗口打開網站" style="cursor:pointer"? ??/>?
2016-11-20
<input name="button" type="button" onClick="openWindow()" value="新窗口打開網站"style="cursor:pointer"/> ?最后加一句這個
2016-11-20
<input style="cursor:pointer;" name="button" type="button" onClick="openWindow()" value="新窗口打開網站"/>?