div加链接

方法一
<div style="background:blue;width:200px;height:30px;"  onmouseover="this.style.cursor='pointer'" onClick="document.location='http://www.baidu.com'" ></div>
方法二
<div  onClick="window.location.href='http://www.baidu.com'" style="background:blue;width:160px; height:120;cursor:hand ;"></div>

posted @ 2014-10-21 15:48  V_JACK  阅读(195)  评论(0编辑  收藏  举报