a 標簽和 input 標簽都可以做鏈接點擊的。代碼:
--------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<input type="button" onclick="location.reload()" value="重置">
<input type="button" onclick="location.href='http://www.baidu.com'" value="百度">
<a href="http://www.baidu.com">百度</a>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------------------
<input>標簽里可以加入onclick 事件 用location的href 實現 與<a>標簽實現的外觀有區別,但是功能一樣!
