如何不用a便签也能实现超链接?

在li或者div之中插入一个属性使得这些标签能获得点击实现超链接的效果,是否是用hover或者其他什么方式可以达到,这样可以更加简便。

https://zhidao.baidu.com/question/564069662.html
上面有你要的

添加onclick事件,获取存储链接的属性值,用location=xxxx来跳转

 <ul>
<li href="http://bbs.csdn.net" onclick="location.href=this.getAttribute('href')">bbs.csdn.net</li>
<li href="http://ask.csdn.net" onclick="location.href=this.getAttribute('href')">ask.csdn.net</li>
</ul>